E
EarlAtSSCS
Hi,
Using Access installed on two different machines I get a compile error on
one machine and not on the other.
query = "SELECT contact.Phone, contact.CDBSiteNumber, t_contacts.contact_id
AS CustomerNumber, t_contacts.company_name " & "FROM contact INNER JOIN
t_contacts ON contact.Cust_ = t_contacts.contact_id " & "WHERE
contact.[contact id] = " & Me.contactid & ";"
If I change the statement to:
query = "SELECT contact.Phone, contact.CDBSiteNumber, t_contacts.contact_id
AS CustomerNumber, t_contacts.company_name " & "FROM contact INNER JOIN
t_contacts ON contact.Cust_ = t_contacts.contact_id " & "WHERE
contact.[contact id] = " & Me![contactid] & ";"
It compiles fine on both machines.
Since I need to develop on the machine where the first statement compiles
and runs correctly and it still needs to compile and run on the other
machine, I need to know what to change to make the environments compatible.
Using Access installed on two different machines I get a compile error on
one machine and not on the other.
query = "SELECT contact.Phone, contact.CDBSiteNumber, t_contacts.contact_id
AS CustomerNumber, t_contacts.company_name " & "FROM contact INNER JOIN
t_contacts ON contact.Cust_ = t_contacts.contact_id " & "WHERE
contact.[contact id] = " & Me.contactid & ";"
If I change the statement to:
query = "SELECT contact.Phone, contact.CDBSiteNumber, t_contacts.contact_id
AS CustomerNumber, t_contacts.company_name " & "FROM contact INNER JOIN
t_contacts ON contact.Cust_ = t_contacts.contact_id " & "WHERE
contact.[contact id] = " & Me![contactid] & ";"
It compiles fine on both machines.
Since I need to develop on the machine where the first statement compiles
and runs correctly and it still needs to compile and run on the other
machine, I need to know what to change to make the environments compatible.