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!

Select correct record from table 1

Status
Not open for further replies.

liark

Programmer
Apr 18, 2000
36
GB
I'm passing accross url.name which is a concatanation of two fields in a database table (forename, surname)

Please, how can I select that record from the table?


Code:
SELECT * from person
where 'per_forename per_surname' EQ #url.name#

Liark


 
What db are you using the syntax may be a little different

SELECT * from person
where per_forename & ' ' & per_surname EQ #url.name#

Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.
-Douglas Adams (1952-2001)
 
oops sorry.

SELECT * from person
where per_forename & ' ' & per_surname = '#url.name#'

Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.
-Douglas Adams (1952-2001)
 
It's just an Access database.

Thanks for your help.

Liark


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top