G
Guest
I would like to disable the next button and previous buttons when certain
conditions are me in a form. The conditions are disable next when when on a
new record and disable previous when on the first record. I am using Access
2002. I tried this code.
Private sub form_current( )
if me.newrecord = true then
cmdprevious.setfocus
cmdnext.enabled = False
else
cmdnext.enabled = true
end if
end sub
I get an error after the else at cmdnext.enabled = true please help!
conditions are me in a form. The conditions are disable next when when on a
new record and disable previous when on the first record. I am using Access
2002. I tried this code.
Private sub form_current( )
if me.newrecord = true then
cmdprevious.setfocus
cmdnext.enabled = False
else
cmdnext.enabled = true
end if
end sub
I get an error after the else at cmdnext.enabled = true please help!