Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #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.

Reply With Quote
  #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
Reply With Quote
  #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 .
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 07:45 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.