J
JMD.Park
is there a way to have a new blank form start after entering last input of
information? Thanks in advance for the help!
information? Thanks in advance for the help!
is there a way to have a new blank form start after entering last input of
information? Thanks in advance for the help!
KenSheridan via AccessMonster.com said:In the AfterUpdate event procedure of the control in question put the
following code:
DoCmd.GoToRecord acForm, Me.Name, acNewRec
This will take you to a blank new record immediately after entering data in
the control, whether you’ve just entered a new record or edited an existing
one. But bear in mind that a user might not necessarily enter the data in
the controls in the correct order. An alternative would be to make sure that
the control is last in the form’s tab order, and put the above code in the
form’s AfterUpdate event procedure rather than the control’s. This would
mean that the form would move to a new blank record either after entering
data in the control, or if after entering data in the control and then moving
back to another control with the mouse or Shift-Tab, they then save the
record explicitly or by moving off it with the navigation bar.
Ken Sheridan
Stafford, England
JMD.Park said:Last entered would be enter or tab after last field
[quoted text clipped - 10 lines]If you set the form's property to add new records, and add a <Save> command
button, you should get "a new blank form". If you're asking how to have it
Is working now, have to tab through buttons. Thanks!
KenSheridan via AccessMonster.com said:Sounds like you might have entered the code directly in the properties sheet,
not in the event procedure. To enter code in an event procedure you select
the event property in the properties sheet, click the ‘build’ button (the one
with the three dots), select ‘code builder’, then enter the code in the VBA
window which opens.
Ken Sheridan
Stafford, England
JMD.Park said:Receive error "can't find the object 'DoCmd'"
[quoted text clipped - 22 lines]In the AfterUpdate event procedure of the control in question put the
following code:
KenSheridan via AccessMonster.com said:Check that you have no missing or broken references.
Ken Sheridan
Stafford, England
JMD.Park said:I am using tab, and the cycle control is set to all records. Still doesn't
work.
[quoted text clipped - 6 lines]is there a way to have a new blank form start after entering last input of
information? Thanks in advance for the help!If you're using the mouse exclusively, then Access may not have any way to
know when you're done.
--
Message posted via AccessMonster.com
.