Hello
I'm trying to update my contacts form with a combobox. I'm using Access 2k. I tried this code:
cboName is the combobox. But it doesn't even click properly I mean you click and it opens then after choosing an item it just hangs there.
in cboName properties I have it as unbound
table/query for rowsourcetype
SELECT DISTINCTROW tblContacts.ID, [LastName] & ", " & [FirstName] AS Expr1 FROM tblContacts ORDER BY [LastName] & ", " & [FirstName]; for the Row Source
Column Count is 2
Width is 0";1.416"
not sure what else is pertinent info
please help I worked too long on this to admit.
Duane
I'm trying to update my contacts form with a combobox. I'm using Access 2k. I tried this code:
Code:
private sub cboName_AfterUpdate()
me.recordsetclone.FindFirst "[ID] = " & Me![cboName]
me.bookmark = me.recordsetclone.bookmark
end sub
private sub Form_Current()
cboName = ID
end sub
in cboName properties I have it as unbound
table/query for rowsourcetype
SELECT DISTINCTROW tblContacts.ID, [LastName] & ", " & [FirstName] AS Expr1 FROM tblContacts ORDER BY [LastName] & ", " & [FirstName]; for the Row Source
Column Count is 2
Width is 0";1.416"
not sure what else is pertinent info
please help I worked too long on this to admit.
Duane