data determines which table to use

R

Ricoy-Chicago

Access XP.
I have a table that has the fields "Extension code" and "Description" and
I have a form where an "Extension code" is going to be entered following
this criteria:
(a) If the extension code is known it will be entered by the user and the
field "Description" is filled by the form
(b) If the extension code is unknown a 000 will be entered by the user and
the "Description" is filled by the user

My problem is that the "extension code" 000 has a relationship of
one-to-many while the rest of the extension codes are a one-to-one.

What I want to do is:
IF "extension code" <> enter "description" from table 1
if "extension code" = 000 select "description" from table 2
Is this possible?
Do you need more info.?
Thanks
 
K

KARL DEWEY

Try this ---
IIF([extension code] = "000", [table 2].[description], [table
1].[description])
 
R

Ricoy-Chicago

Thank you!
KARL DEWEY said:
Try this ---
IIF([extension code] = "000", [table 2].[description], [table
1].[description])
--
KARL DEWEY
Build a little - Test a little


Ricoy-Chicago said:
Access XP.
I have a table that has the fields "Extension code" and "Description" and
I have a form where an "Extension code" is going to be entered following
this criteria:
(a) If the extension code is known it will be entered by the user and the
field "Description" is filled by the form
(b) If the extension code is unknown a 000 will be entered by the user and
the "Description" is filled by the user

My problem is that the "extension code" 000 has a relationship of
one-to-many while the rest of the extension codes are a one-to-one.

What I want to do is:
IF "extension code" <> enter "description" from table 1
if "extension code" = 000 select "description" from table 2
Is this possible?
Do you need more info.?
Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top