Sql Start And End Date Query (1 Viewer)

David92595

Registered User.
Local time
Today, 02:08
Joined
Jun 28, 2011
Messages
44
I need to run a query using a sql 2008 R2, with an access 2007 front end. The query needs to allow me to set parameters for a start date and an end date. Any suggestions?

David92595
 

tehNellie

Registered User.
Local time
Today, 10:08
Joined
Apr 3, 2007
Messages
751
Create a stored procedure with two parameters StartDate and EndDate perhaps.
 

MSAccessRookie

AWF VIP
Local time
Today, 05:08
Joined
May 2, 2008
Messages
3,428
I need to run a query using a sql 2008 R2, with an access 2007 front end. The query needs to allow me to set parameters for a start date and an end date. Any suggestions?

David92595

It sounds like you should be able to use a Basic MS Access parameter Query in this case. The following link provides examples of parameter Queries, along with explanations. See if it helps you to resolve the issue on your own, and get back with any questions.

http://office.microsoft.com/en-us/a...ers-with-queries-and-reports-HA001117077.aspx
 

mdlueck

Sr. Application Developer
Local time
Today, 05:08
Joined
Jun 23, 2011
Messages
2,631
Create a stored procedure with two parameters StartDate and EndDate perhaps.

Yes, the OP could do that. I have an example of that here:

"Using VBA ADO objects to execute a Stored Procedure"
http://www.access-programmers.co.uk/forums/showthread.php?t=216860#post1104120

Usually I use an adoRS object and run the query in Pass-Through mode to SELECT records, and SP's to INSERT / UPDATE data.

"Client/Server Architecture"
http://www.access-programmers.co.uk/forums/showpost.php?p=1110794&postcount=5

I think we have enough collective ideas. Now to hear from the OP I think is next.
 

Users who are viewing this thread

Top Bottom