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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting #'s into SQL Strings 1

Status
Not open for further replies.

NOPOPNOSTYLE

IS-IT--Management
Apr 9, 2002
38
GB
Hello

I'm using Dreamweaver MX and I'm trying to asses an access database using a date between query, below is the result so far, this only works if I type a date flanked by the # character in the Form. Can I modify the code below to put the #'s in. (TIMM_ONE Refers to the Request.Form bit as does TIMM_TWO)

TIMM.Source = "SELECT * FROM OPS_EXTRACT WHERE DATE Between " + Replace(TIMM__ONE, "'", "''") + " And " + Replace(TIMM__TWO, "'", "''") + " ORDER BY DATE ASC"

Regards

Lord Exell

 
...
"SELECT * FROM OPS_EXTRACT WHERE DATE Between #" + Replace(TIMM__ONE, "'", "''") + "# And #" + Replace(TIMM__TWO, "'", "''") + "# ORDER BY DATE ASC"

like that?


01010100 01101001 01100101 01110010 01101110 01101111 01101011 00101110 01100011 01101111 01101101
29 3K 10 3D 3L 3J 3K 10 32 35 10 3E 39 33 35 10 3K 3F 10 38 31 3M 35 10 36 3I 35 35 10 3K 39 3D 35 10 1Q 19
Do you know how hot your home computer is? I do:
 
Tarwn

Many thanks, your solution worked a treat, simple when your know how, I was trying to overcomplicate the situation.

Hurrah

Lord Exell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top