Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
| Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old October 2nd, 2003, 02:59 AM
Authorized User
 
Join Date: Sep 2003
Location: , , .
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default form, archive records between dates

hi, i need to create a form with a button to archive records between start and end dates which are entered.

i have created append, delete which are placed in a macro and the form with the button. however, i have to enter 2 sets of start and end dates for the append and delete querys. i only want to enter one set.

how do i link the button to the macro?

thanks.

  #2 (permalink)  
Old October 2nd, 2003, 08:35 AM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Location: Clarksville, TN, USA.
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Simple,
I am assuming that the date you are using are the the same for both queries.
Reference the textbox controls on the form from within your queries instead of a hard-coded date or a parameter. By doing this you will be able to enter one set of dates to be used from anywhere in your database.



Sal
  #3 (permalink)  
Old October 2nd, 2003, 08:34 PM
Authorized User
 
Join Date: Sep 2003
Location: , , .
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

oops. yah. i asked without trying. now i just have to make the default dates show .


Similar Threads
Thread Thread Starter Forum Replies Last Post
Get records between 2 dates and times jlecates Access 1 February 21st, 2007 03:30 PM
Pull Records based on Dates sprocket Access 3 July 17th, 2006 03:42 PM
get size (W x H, pixels) of .swf archive ACE2084 Javascript How-To 0 April 27th, 2005 11:32 AM
Delete Archive Logs Script rstelma Oracle 1 October 28th, 2004 01:18 PM
error searching archive vknowles Forum and Wrox.com Feedback 1 June 4th, 2003 08:46 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.