Re: Session Variables (again!)
From: Ray (ray_at_ray.com)
Date: 05/23/04
- Next message: Mickey: "Re: Navigation bar propoerties will not publish"
- Previous message: Rizwan: "How to format the text/layout of server generated pages"
- In reply to: Thomas A. Rowe: "Re: Session Variables (again!)"
- Next in thread: Thomas A. Rowe: "Re: Session Variables (again!)"
- Reply: Thomas A. Rowe: "Re: Session Variables (again!)"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 23 May 2004 21:13:44 +0000 (UTC)
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)
"Thomas A. Rowe" <tarowe@mvps.org> wrote in message
news:ehR9HkOQEHA.3012@tk2msftngp13.phx.gbl...
> 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)
> http://www.ycoln-resources.com
> 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
>
> "Ray" <ray@ray.com> wrote in message
news:c8ql50$7b5$1@hercules.btinternet.com...
> > 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.
> >
> >
>
>
- Next message: Mickey: "Re: Navigation bar propoerties will not publish"
- Previous message: Rizwan: "How to format the text/layout of server generated pages"
- In reply to: Thomas A. Rowe: "Re: Session Variables (again!)"
- Next in thread: Thomas A. Rowe: "Re: Session Variables (again!)"
- Reply: Thomas A. Rowe: "Re: Session Variables (again!)"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|