I have 2 tables:
tblNotaries: NotaryRefNo (PK), NotaryName, NotarySurname, etc..
tblNotaryIndex: NotaryRefNo, Volume (Composite Key), etc...
I am trying to create a form where one selects the Notary name and surname being populated from tblNotaries and then the according volumes are shown to be selected from another combobox
I am trying this code on the afterUpdate event of the cmbNotary but is giving me a type mismatch. The NotaryRefNo is short text
tblNotaries: NotaryRefNo (PK), NotaryName, NotarySurname, etc..
tblNotaryIndex: NotaryRefNo, Volume (Composite Key), etc...
I am trying to create a form where one selects the Notary name and surname being populated from tblNotaries and then the according volumes are shown to be selected from another combobox
I am trying this code on the afterUpdate event of the cmbNotary but is giving me a type mismatch. The NotaryRefNo is short text
Code:
Private Sub cmbNotary_AfterUpdate()
cmbVolume.RowSource = "SELECT Volume FROM tblNotaryIndex WHERE NotaryRefNo = " & cmbNotary.Column(0)
cmbVolume.Requery
End Sub