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

No value given for one or more required parameters. 1

Status
Not open for further replies.

Kris912

Programmer
Jul 29, 2005
27
US
I am trying to query my DB with this statement:

<%
set connection = server.createobject("ADODB.Connection")
connection.open session("DBConnString")

Start = Date()
This_Month = DateAdd("d", 30, Date())

SQL = "select * from Events Where Start_Date Between Start AND This_Month"
set rs = Connection.Execute(SQL)

%>

The field in my table "Start_Date" is a date/time field. Am I missing proper syntax? Logically it seems to make sense but I get the error message 'No value given for one or more required parameters' Am I declaring the variables incorrectly? Help!

Thanks So Much :)
Kris912
 
Try
Code:
SQL = "select * from Events Where Start_Date Between #" & Start & "# AND #" & This_Month & "#"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top