T
Tony
Hi All,
I've got an issue which I'm assuming is simple to solve and hope you can
help.
I've got a database with two tables, Requests & CallerID. On a form
(AddRecord), I would like the user to be able to select a value from a combo
box (CallerIDNumber) that uses a field in Requests as its source. After a
value is selected, an unbound text control on the form should show data
(FXNumber) from CallerID. I've set up a query that gets the correct
information from CallerID and it works correctly when I run it. However, I
can't figure out how to get the value from IDNumbers into the control on the
form.
The following query returns the correct record from CallerID:
SELECT CallerID.CallerIDNumber, CallerID.FXNumber, CallerID.ContactName
FROM CallerID
WHERE (((CallerID.CallerIDNumber)=[Forms]![AddRecord]![txtCallerIDNumber]));
The CallerIDNumber on the form calls the GetCallerIDInfo macro that has this
info:
Action - SetValue
Item - [Forms]![AddRecord]![txtFXNumber]
Expression - [FXNumber]
However, when I run the form and select a CallerID number from the combo
box, I get the following error:
"The object doesn't contain the Automation object 'FXNumber'.
I suspect that I'm not addressing the query data correctly to get the data,
but am stumped. Any help is greatly appreciated.
Thanks & Ciao,
Tony
I've got an issue which I'm assuming is simple to solve and hope you can
help.
I've got a database with two tables, Requests & CallerID. On a form
(AddRecord), I would like the user to be able to select a value from a combo
box (CallerIDNumber) that uses a field in Requests as its source. After a
value is selected, an unbound text control on the form should show data
(FXNumber) from CallerID. I've set up a query that gets the correct
information from CallerID and it works correctly when I run it. However, I
can't figure out how to get the value from IDNumbers into the control on the
form.
The following query returns the correct record from CallerID:
SELECT CallerID.CallerIDNumber, CallerID.FXNumber, CallerID.ContactName
FROM CallerID
WHERE (((CallerID.CallerIDNumber)=[Forms]![AddRecord]![txtCallerIDNumber]));
The CallerIDNumber on the form calls the GetCallerIDInfo macro that has this
info:
Action - SetValue
Item - [Forms]![AddRecord]![txtFXNumber]
Expression - [FXNumber]
However, when I run the form and select a CallerID number from the combo
box, I get the following error:
"The object doesn't contain the Automation object 'FXNumber'.
I suspect that I'm not addressing the query data correctly to get the data,
but am stumped. Any help is greatly appreciated.
Thanks & Ciao,
Tony