appear in a different language depending on how the driver is configured.
-------------------------------------------------------
[Microsoft][ODBC Microsoft Access Driver] Syntax error in string in query
expression 'Identifier= " & ID'.
Source: Microsoft OLE DB Provider for ODBC Drivers
Number: -2147217900 (0x80040e14)
Ok, then
Dim ID
ID = Session("Identifier")
SELECT * FROM tblMember WHERE Identifier= " & ID
--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
Identifier is an AutoNumber field. However, with that I get this error
Server error: Unable to retrieve schema information from the query:
SELECT * FROM tblMember where Identifier= " & Session("Identifier")
against a database using the connection string
DRIVER={Microsoft Access Driver (*.mdb)};DBQ=URL=fpdb/books.mdb.
The following error message comes from the database driver software; it
may
appear in a different language depending on how the driver is
configured.
-------------------------------------------------------
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing
operator) in
query expression 'Identifier= [ & Session(]Identifier")'.
Source: Microsoft OLE DB Provider for ODBC Drivers
Number: -2147217900 (0x80040e14)
What type of field is Identifier, text or autonumber or number.
If "Identifier" is a text field use:
SELECT * FROM tblMember where Identifier= '" & Session("Identifier") &
"'
If "Identifier" is a number or autonumber field use:
SELECT * FROM tblMember where Identifier= " & Session("Identifier")
--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
Having been shown how to pass Session Variables across pages, I
tried to
run
a query with the Session Variable as a parameter, but I didn't work.
The
query is "SELECT * FROM tblMember where Identifier= ::Identifier::",
where
Identifier is the passed variable. It appears on the page correctly
as a
number, and the box it appears in is called Identifier.