S
Scuda
Hi All, hope everyone here in the states had a nice thanksgiving.
I have a form where I fill in information pertaining to that case (record).
There are certain types of cases that require an additional form be filled
out. What I did was create a command button to the new form and on that new
form I had a command button that when clicked, filled in the form with the
information from the Last Record in the table. I removed that button and put
it in the On Open section of my new form:
Private Sub Form_Open(Cancel As Integer)
DoCmd.GoToRecord , , acLast
End Sub
Which worked fine, but I need it to go the CURRENT record, not the last one.
For some reason this did not work:
Private Sub Form_Open(Cancel As Integer)
DoCmd.GoToRecord , , acCurrent
End Sub
Someone tell me what I am doing wrong?
Thanks!
I have a form where I fill in information pertaining to that case (record).
There are certain types of cases that require an additional form be filled
out. What I did was create a command button to the new form and on that new
form I had a command button that when clicked, filled in the form with the
information from the Last Record in the table. I removed that button and put
it in the On Open section of my new form:
Private Sub Form_Open(Cancel As Integer)
DoCmd.GoToRecord , , acLast
End Sub
Which worked fine, but I need it to go the CURRENT record, not the last one.
For some reason this did not work:
Private Sub Form_Open(Cancel As Integer)
DoCmd.GoToRecord , , acCurrent
End Sub
Someone tell me what I am doing wrong?
Thanks!