I have a Form in MS Access 2010. The form is bound to a record source (just a simple table). I am trying to use code like the following :
Change a field in the table (the current record) to another value (error is the field is not defined in VBA which causes it to not change in the table)
AFieldInTheTable = Value
Go to another record in the table (error is nothing happens at all)
DoCmd.GoToRecord acDataForm, Me.Name, acNewRec
Is there some option I am not setting because I tried building the form using the built in wizard and from a blank form but still no difference.
It is like Access doesn't know that the form is bound to the table. But I know that it is. So frustrating.
GoToRecord
- Logan MurphyGoToRecord
might be that edits or additions aren't allowed therefore it doesn't allow you to go toacNewRec
(Just guessing) - ashareefdebug.print "test"
or aMsgBox
to ensure you running through that code. - Patrick Honorez