G
Guest
Hi all,
I had a request this morning from one of the users of an Inventory system
I setup that is an Access app. linked to a SQL Server database. They have
asked me if I could put a combo box on the form for looking up a stock item
no. from the stock table. In other words, instead of looking up a stock item
for a new record, they want for looking for an existing record. I put a
Combo Box on the form and made it unbound. I looks up the stock item no.,
stock description. When the select the stock item # and the combo closes up,
in the Change Event I wrote the following code:
Private Sub cmboFindStockNo_Change()
'Find the stock#
Dim varStockNo As Variant
varStockNo = Me.CmboFindStockNo.Value
DoCmd.FindRecord varStockNo, , ,acSearchAll, , ,True
End Sub
This errors every time??? Can anyone help?
Tks,
Don
I had a request this morning from one of the users of an Inventory system
I setup that is an Access app. linked to a SQL Server database. They have
asked me if I could put a combo box on the form for looking up a stock item
no. from the stock table. In other words, instead of looking up a stock item
for a new record, they want for looking for an existing record. I put a
Combo Box on the form and made it unbound. I looks up the stock item no.,
stock description. When the select the stock item # and the combo closes up,
in the Change Event I wrote the following code:
Private Sub cmboFindStockNo_Change()
'Find the stock#
Dim varStockNo As Variant
varStockNo = Me.CmboFindStockNo.Value
DoCmd.FindRecord varStockNo, , ,acSearchAll, , ,True
End Sub
This errors every time??? Can anyone help?
Tks,
Don