Using Stephen Lebans NavButtons

R

RzB

I am using Stephen Lebans excellent NavButtons
sub form. (many thanks Stephen). It works a treat
but for one minor glitch. If I click on Add Record
and then, without entering any data, click on Prev
Record, it does nothing. The Prev Button OnClick
event does not fire. I have to click on the Prev
Button a second time.
Any idea what I'm doing wrong?
Many thanks,
Roy
 
S

Stephen Lebans

That is not the behaviour seen in the sample MDB you downloaded. Have
you made any changes to the original source code?

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
R

RzB

Stephen,
Yes correct. The sample works fine. I'm sure it is caused
by something else that I'm doing. I haven't made any changes
to the source behind your sub form and I have added the
code as required to the main form OnCurrent as required.
I have some other code in the main form OnCurrent that
basically does the following...
Sets up a RowSource and Requeries a list box
Requeries another sub form
Puts some default dates in a date picker
Sets focus to the first combo box on the form.

Interestingly, if I comment out the Set focus I get a
change of behaviour when hitting the Prev Button -
it gives me a "You can't go to the specified record" error.
Won't go away until I hit the Esc key. Is that a clue?

Many thanks for you help.
Roy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top