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

text submit to sql with js

Status
Not open for further replies.

mapnapkin

Technical User
Mar 21, 2003
6
US
I'm trying to use Jacob Gilley calendar script from
to send a the date output to a sql string in another asp page to show past logs from past days... into something like

rs.Open "Select FirstName, LastName, Company, Phone, Cell, For, Message, Urgent, Status from Contacts where Date='('$date')' ORDER BY Time DESC",conn

this is my first asp application so i don't really know where to go for help.
I would appreciate any direction or help.

Thank You
 
do u wan this query to work? or do u want to know how it works?

rs.Open "Select FirstName, LastName, Company, Phone, Cell, For, Message, Urgent, Status from Contacts where Date='('$date')' ORDER BY Time DESC",conn

query to work:
set con=Server.CreateObject("ADODB.Connection")
set rs=Server.CreateObject("ADODB.Recordset")

con.open "ConnectionString" 'Building it is a totally different thing.

rs.Open "Select FirstName, LastName, Company, Phone, Cell, For, Message, Urgent, Status from Contacts where Date='('$date')' ORDER BY Time DESC",conn
 
ya... I have that part, I was just showing where i needed the variable to go.. the problem is that the calendar script is hard to change (for me) to get it to post the date to the next page
 
Maybe variable is the wrong word... what i need to do is get
#" & date & "#
from my calendar page into the postto page

into this(below)
rs.Open "Select * from Contacts where Date Like #" & date & "# ORDER BY Time DESC",conn

 
date=request("FieldWhichHoldsDateValue")

if the calender is a popup then pass the variable as a query string.
date=request("QuerStringValue")

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top