GaelicFatboy
Registered User.
- Local time
- Today, 06:36
- Joined
- Apr 17, 2007
- Messages
- 100
Hi everyone,
I have a split form which is used to manage accounts using name, password, account type etc. As the database will be used by people who will have no experience of them I’ve added a command button to add a new record instead of clicking the asterix in the datasheet portion of the form. The code behind the command button is:
Me.Recordset.AddNew
Me.UserName.SetFocus
What’s going wrong is if the user clicks away from the new record or the last field is filled in the new record appears twice in the datasheet and needs to be refreshed with the following code before it appears correctly:
Me.RecordSource = "Accounts_Frmqry"
The process when using the AddNew command does not follow that of when the asterix is clicked to add a new record. The problem is I’m unable to run the refresh code automatically.
What code can I write to overcome this bug in the software?
Cheers
D
I have a split form which is used to manage accounts using name, password, account type etc. As the database will be used by people who will have no experience of them I’ve added a command button to add a new record instead of clicking the asterix in the datasheet portion of the form. The code behind the command button is:
Me.Recordset.AddNew
Me.UserName.SetFocus
What’s going wrong is if the user clicks away from the new record or the last field is filled in the new record appears twice in the datasheet and needs to be refreshed with the following code before it appears correctly:
Me.RecordSource = "Accounts_Frmqry"
The process when using the AddNew command does not follow that of when the asterix is clicked to add a new record. The problem is I’m unable to run the refresh code automatically.
What code can I write to overcome this bug in the software?
Cheers
D