ukaquanaut
Registered User.
- Local time
- Today, 11:27
- Joined
- Feb 8, 2012
- Messages
- 33
Hi Guys
I have a Form which has a datasheet subform, The user has a search as you type popup form to search stock items and find the code for one of the controls in the datasheet.
I have managed to get a double click to enter the stock code of the selected item into the subform data sheet control, but I cant manage to get the focus set back there so the user can tab onto teh next control in the datasheet.
I have tried a variety of form addressing, but I cant seem to progress with this.
I expect its a comon problem but I cant find a solution and have spent hours googling for it.
the address for the control that gets data inserted is:
' this inserts the value into the subform datasheet fine so the address of the control is ok
Forms!FrmSearchTest.Form!FrmSubSearchTest!StockCode = lstItems
Forms![FrmSearchTest]!FrmSubSearchTest.SetFocus
Forms![FrmSearchTest]!FrmSubSearchTest.Form!StockCode.SetFocus
I managed to get these two lines to run as in no errors(it doesnt crash out), but it doesnt change the focus at all.
Any thoughts would be appreciated.
Jerry
I have a Form which has a datasheet subform, The user has a search as you type popup form to search stock items and find the code for one of the controls in the datasheet.
I have managed to get a double click to enter the stock code of the selected item into the subform data sheet control, but I cant manage to get the focus set back there so the user can tab onto teh next control in the datasheet.
I have tried a variety of form addressing, but I cant seem to progress with this.
I expect its a comon problem but I cant find a solution and have spent hours googling for it.
the address for the control that gets data inserted is:
' this inserts the value into the subform datasheet fine so the address of the control is ok
Forms!FrmSearchTest.Form!FrmSubSearchTest!StockCode = lstItems
Forms![FrmSearchTest]!FrmSubSearchTest.SetFocus
Forms![FrmSearchTest]!FrmSubSearchTest.Form!StockCode.SetFocus
I managed to get these two lines to run as in no errors(it doesnt crash out), but it doesnt change the focus at all.
Any thoughts would be appreciated.
Jerry
Last edited: