T
Trev Clarke via AccessMonster.com
Hi there,
I have a main form based on a table where the key is a week-ending date.
I have added control buttons (not the standard navigation buttons) that
allow the user to move backwards and forwards through the records.
If the form is at the first record and the user clicks the 'Previous Week'
button, a MsgBox pops up and asks if they want to add a record for the
previous week.
What I seem to be unable to do is, if they respond 'Yes', to add the new
record via vb code and have the form go to that new record.
I have tried various combinations of AddNew, GoToRecord, INSERT INTO,
Refresh, Requery, etc - so much so that I'm not sure whether I know my a**
from my elbow. But the form always seems to throw up an error saying that
it can't find the new record.
This is using Access 97 by the way.
Any assistance would be gratefully received. I hope I've included all the
important information.
Cheers,
Trev.
I have a main form based on a table where the key is a week-ending date.
I have added control buttons (not the standard navigation buttons) that
allow the user to move backwards and forwards through the records.
If the form is at the first record and the user clicks the 'Previous Week'
button, a MsgBox pops up and asks if they want to add a record for the
previous week.
What I seem to be unable to do is, if they respond 'Yes', to add the new
record via vb code and have the form go to that new record.
I have tried various combinations of AddNew, GoToRecord, INSERT INTO,
Refresh, Requery, etc - so much so that I'm not sure whether I know my a**
from my elbow. But the form always seems to throw up an error saying that
it can't find the new record.
This is using Access 97 by the way.
Any assistance would be gratefully received. I hope I've included all the
important information.
Cheers,
Trev.