axism
MIS
- May 17, 2005
- 58
Hi, I have form a and form b. Within form a, i have a combo box, drop down. I want to change form b's recordsource base on update on drop drown on form a. so i had the follow in after update event for drop down combo box. However, I am getting compiling error when running. please help.
Code as follows on form a's drop down after update event:
Code as follows on form a's drop down after update event:
Code:
Private Sub cmboNames_AfterUpdate()
Forms!b.RecordSource = "SELECT dbo.qryContactTypesDetails.ContactID, dbo.qryContactTypesDetails.ContactType FROM dbo.qryContactTypesDetails WHERE dbo.qryContactTypesDetails.ContactID = " & currentid
Forms!sfrmContactType.Requery
End Sub