G
Guest
Hi,
I have an evironment problem.
One computer will compile and run correctly code, but another will generate
a compile error.
Both machines are running Office Access 2003.
A sample of the problem is:
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 & ";"
Both machines compile and run correctly if the code is changed to this:
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] & ";"
I need both machines to either accept the first version or generate the
compile error.
Earl
I have an evironment problem.
One computer will compile and run correctly code, but another will generate
a compile error.
Both machines are running Office Access 2003.
A sample of the problem is:
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 & ";"
Both machines compile and run correctly if the code is changed to this:
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] & ";"
I need both machines to either accept the first version or generate the
compile error.
Earl