Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old January 13th, 2005, 04:38 PM
cskhan cskhan is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 3 cskhan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
form reset

hi all,
- i have a form which is used by the user to insert the data in the tables. Now the problem is that when ever the user fills in the form and submits the old values remain in the fields now i want that when ever user press the submit button on the form (then after successfull insertion in table) the form resets i.e. intialized to default values of the values which were in the beginning when form was opened.

- i have form in which differnt criteria's are present whenever the user selects a criteria i.e records between two dates then a query should execute and the result of that query should be posted to a report is that possible if yes then how.

Thanks in anticipation

Reply With Quote
  #2  
Old January 15th, 2005, 11:35 AM
lwells lwells is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Sep 2004
Posts: 632 lwells User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 h 59 m 38 sec
Reputation Power: 5
For your first question, I believe what you are wanting to do is go to a new record that contains all your default values. Assuming that you have added all the default values to each of the controls, then when the user presses the button to save the current record, just add the command DoCmd.GoToRecord , , acNewRec at the end of the events in your code. This would move the record on your form to a new record with all the default values showing. In effect giving the reset appearance.

For your second question, create your query and in the grid below the date that you wish to sort by, enter the following:

Between [Forms]![NameOfForm]![StartDate] And [Forms]![NameOfForm]![EndDate]

Change the name of the form and controls with your own. Then set your report's RecordSource to this query.

lwells

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > form reset


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT