P
Paul.
Hi every one and tahnks Steve,
Below is Steve's answer to my question.
However, I forgot to mention that in the query I am includuding fields from
2 related tables.
These Tables are "Contacts" and "HotelList", related by the field "Hotel"
The relationship is one to many as below
1 Hotel in table "Hotels" and many "Hotels" in table "Contacts"
The "hotel" field I am using in the Query is from the "Table " "Contacts"
When I type the expression Steve has given me and run the Query, I receive a
message telling be that:
The specified field 'Hotel' could refer to more than one table in the FROM
clause of you SQL statement
Anybody able to help me on this!
Paul,
Well, the syntax of the expression is not quite correct. Try it like
this...
GmEmailAddress: DLookUp("","Contacts","[Hotel]='" & [Hotel] &
"' And [Contact Type]='GM'")
According to your description, it looks to me like you also need a
criteria of "Owner" in the Contact Type column of the query.
Below is Steve's answer to my question.
However, I forgot to mention that in the query I am includuding fields from
2 related tables.
These Tables are "Contacts" and "HotelList", related by the field "Hotel"
The relationship is one to many as below
1 Hotel in table "Hotels" and many "Hotels" in table "Contacts"
The "hotel" field I am using in the Query is from the "Table " "Contacts"
When I type the expression Steve has given me and run the Query, I receive a
message telling be that:
The specified field 'Hotel' could refer to more than one table in the FROM
clause of you SQL statement
Anybody able to help me on this!
Paul,
Well, the syntax of the expression is not quite correct. Try it like
this...
GmEmailAddress: DLookUp("","Contacts","[Hotel]='" & [Hotel] &
"' And [Contact Type]='GM'")
According to your description, it looks to me like you also need a
criteria of "Owner" in the Contact Type column of the query.