K
Karen
Hello
I have a form that is being used to update data in a table called
"Customer". This table holds customer info like Businessname/address etc...
I added a combo box to the form so when someone wants to update info on any
customer they can search by "businessname" and the customer would appear in
the form for data entry to begin. My combo box properties are as follows:
Control Source- null
Row Source Type- Table/query
After update - Events procedure as follows:
Private Sub Combo70_AfterUpdate()
DoCmd.ShowAllRecords
Me!txtbusinessname.SetFocus
DoCmd.FindRecord Me!cboFindCustomer
Me!cboFindCustomer.Value = ""
End Sub
Its not working. When I selected debug on the error it highlighted the
"Me!txtbusinessname.SetFocus" line on the code above.
Can anyone help?
Thanks
I have a form that is being used to update data in a table called
"Customer". This table holds customer info like Businessname/address etc...
I added a combo box to the form so when someone wants to update info on any
customer they can search by "businessname" and the customer would appear in
the form for data entry to begin. My combo box properties are as follows:
Control Source- null
Row Source Type- Table/query
After update - Events procedure as follows:
Private Sub Combo70_AfterUpdate()
DoCmd.ShowAllRecords
Me!txtbusinessname.SetFocus
DoCmd.FindRecord Me!cboFindCustomer
Me!cboFindCustomer.Value = ""
End Sub
Its not working. When I selected debug on the error it highlighted the
"Me!txtbusinessname.SetFocus" line on the code above.
Can anyone help?
Thanks