B
Bob
Hi folks,
I have a command button on one of my forms which I use to open a second
form (frmSameAs) in popup mode.
frmSameAs has a combobox on it which I use to list of the contacts in
my database. I want the listing to exclude the current contact.
At the moment, the rowsource for the combo box points to a query
(qryAllOtherContacts). qryAllOtherContacts requires a value for the
current ContactID shown in my existing form (with the command button on
it).
I can open frmSameAs without a problem. But when I press the combo box
to get the drop down list it opens a dialog/parameter box asking for
Me.ContactID.
Is there a way that I can pass the ContactID in my existing form direct
to frmSameAs to provide required parameter for the query
programmatically?
I've tried setting the rowsource for frmSaveAs to "qryAllOtherContacts
WHERE ContactID<>" & Me.ContactID. But this doesn't work.
TIA
Bob
I have a command button on one of my forms which I use to open a second
form (frmSameAs) in popup mode.
frmSameAs has a combobox on it which I use to list of the contacts in
my database. I want the listing to exclude the current contact.
At the moment, the rowsource for the combo box points to a query
(qryAllOtherContacts). qryAllOtherContacts requires a value for the
current ContactID shown in my existing form (with the command button on
it).
I can open frmSameAs without a problem. But when I press the combo box
to get the drop down list it opens a dialog/parameter box asking for
Me.ContactID.
Is there a way that I can pass the ContactID in my existing form direct
to frmSameAs to provide required parameter for the query
programmatically?
I've tried setting the rowsource for frmSaveAs to "qryAllOtherContacts
WHERE ContactID<>" & Me.ContactID. But this doesn't work.
TIA
Bob