buttons not responding

bamwamba

Registered User.
Local time
Today, 22:53
Joined
Feb 16, 2007
Messages
10
hey everyone,
I've created forms and am using customised buttons but a thing is they are all not responding when clicked on.Does anyone know how best to tackle this?
Thanking you in advance!
 
We really need to see the code behind the misbehaving buttons as well as what you want them to do in order to help.
 
troublesome code

private sub cmdprevious_click()
on error goto err_cmdprevious_click
docmd.gotorecord ,, acprevious

exit_cmdprevious_click:
exit sub
err_cmdprevious_click:
msgbox err.description
resume exit_cmdprevious_click
end sub

the above code is suppose to take me back to the previous record(s) but hey,thats not the case.it is clickable but does absolutely nothing despite having worked the first time i used them.
your input will be graetly appreciated!
 
I copied and pasted your code and it works fine for me! I would try redoing it from scratch and if that doesn't work, try the old creating a new blank db then importing everything, as it sounds as if you might have a corrupted db. The part about it working originally and then conking out sort of supports this. The code itself is sound, and reflects my own for the most part (instead of the standard error message if you're on the first record and try to go to the previous one, I have it "wrap" around to the last record).

Good luck!
 
thanks missingling

i greatly appreciate your input.i'll try and implement what you have suggested.
 

Users who are viewing this thread

Back
Top Bottom