R
rm
For two tables (over simplified for the posting): T1 = **ID, type,
detail; T2 = **ID, *T1_ID, value where ** = a primary key and * =
foreign key. When I execute the query SELECT T1.type, T1.detail,
T2.value FROM T1 LEFT JOIN T2 ON T1.ID = T2.T1_ID WHERE T1.ID = 0 then
1 row is returned as expected.
When I execute SELECT T1.type, T1.detail, T2.value FROM T1 LEFT JOIN
T2 ON T1.ID = T2.T1_ID WHERE T1.ID = [enter id] and enter a value of 0
at the prompt then all rows are returned from T1. This is not the
expected result - only 1 row should be returned.
I haven't worked with Access since 1998. I used parameterized queries
many times. What is happening to me (all rows returned) in Access 2003
is not expected behavior compared with my past experience.
I checked in the help system and used the "parameters" option from the
"query" menu where the user is to enter the data type for each
parameter. That didn't produce the expected result. Also, I tried
CINT([enter id]) to no avail.
Help!
detail; T2 = **ID, *T1_ID, value where ** = a primary key and * =
foreign key. When I execute the query SELECT T1.type, T1.detail,
T2.value FROM T1 LEFT JOIN T2 ON T1.ID = T2.T1_ID WHERE T1.ID = 0 then
1 row is returned as expected.
When I execute SELECT T1.type, T1.detail, T2.value FROM T1 LEFT JOIN
T2 ON T1.ID = T2.T1_ID WHERE T1.ID = [enter id] and enter a value of 0
at the prompt then all rows are returned from T1. This is not the
expected result - only 1 row should be returned.
I haven't worked with Access since 1998. I used parameterized queries
many times. What is happening to me (all rows returned) in Access 2003
is not expected behavior compared with my past experience.
I checked in the help system and used the "parameters" option from the
"query" menu where the user is to enter the data type for each
parameter. That didn't produce the expected result. Also, I tried
CINT([enter id]) to no avail.
Help!