I need some help pretty please? :confused:
Im very new to vba access and been trying to work out this problem for a couple of hours. It's probably simple for other people to see the problem though. (I copied it from vba in access for dummies book) This is my code..
I have this in a click event on one form called form3. Im wanting it to open up form2 and go to the same record that form3 is on and then close form3. Simple enough but it comes up with an error saying "you can not assign a value to this object" I've done some debugging and the line "Forms![form2]!ID.Value" is at fault. The other parts are fine.
Can someone help please? Im at the end of the road here :(
Im very new to vba access and been trying to work out this problem for a couple of hours. It's probably simple for other people to see the problem though. (I copied it from vba in access for dummies book) This is my code..
Code:
DoCmd.openform "form2", acNormal, , , acFormAdd Forms![form2]!ID.Value = Me!ID.Value DoCmd.Close acForm, "form3", acSaveYes
Can someone help please? Im at the end of the road here :(
Comment