Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MULTIPLE VARIABLES IN MDQ FILE

Status
Not open for further replies.

eyetry

Programmer
Oct 2, 2002
560
US
I am having a problem generating a (query) tree within the DB Interface Designer.

I'm connecting to the DB fine and can genrate both tables and a tree from a simple query with no variables. I can also generate a tree using one variable in the query. Multiple variables cause the build to fail.

Sample syntax (I'm new to the DB world)...

Select * From DBName Where Member_ID = #ID# and Last_Name = #LName#

Both values are defined as text in the DB and I've defined the variables with moc values (with and without single quotes)

eyetry
 
Whats the error you'r getting.
Just tried the same syntax and had no problems at all...

// Roberth
 
Thanks Myggiz!

The sample I posted here worked for me too. So it had to be the syntax of my real query. I had the query formated like this..

Select * From DBName
Where Member_ID = #ID# and
Last_Name = #LName# and
DOB = #Date#

Should have been

Select * From DBName
Where Member_ID = #ID# and <sp>
Last_Name = #LName# and <sp>
DOB = #Date#

Works now

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top