473,386 Members | 1,698 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Data Entry Form and undo changes

52
I’m hoping you can help me get my form to work. I have a few issues that I need to get squared away.

1. I am using a form for data entry only therefore I need the form to pop with the next available record. If I can get the form to load and be ready for input, making it as simple as possible for the user to enter records without having to navigate to the end of the database would be helpful.

2. I have an event_create_timestamp within a form in which I would like to auto populate when the form loads (same form as question number 1). Can I get the form to auto populate the field so the user does not have to? I currently have the field enactive so they can see it just not alter it.

3. Can you help me with a clear all fields in case they enter bogus data and want to start over before the record is saved to the database? It would be nice to clear all the data they may have entered and place them back into a scenario where they can carry on and append a record to the database.

Any help in getting these situations ironed out would be extremely appreciated..


Thanks much..
Mike
Dec 9 '06 #1
4 3160
MMcCarthy
14,534 Expert Mod 8TB
"The title of this thread has been changed to make the problem clearer to experts and others searching for similar threads."

MODERATOR
Dec 9 '06 #2
MMcCarthy
14,534 Expert Mod 8TB
I’m hoping you can help me get my form to work. I have a few issues that I need to get squared away.

1. I am using a form for data entry only therefore I need the form to pop with the next available record. If I can get the form to load and be ready for input, making it as simple as possible for the user to enter records without having to navigate to the end of the database would be helpful.
In the form properties, under the data tab, set the Data Entry property to Yes.

2. I have an event_create_timestamp within a form in which I would like to auto populate when the form loads (same form as question number 1). Can I get the form to auto populate the field so the user does not have to? I currently have the field enactive so they can see it just not alter it.
In the field (controls) properties under the data tab, set the default value to Now()

3. Can you help me with a clear all fields in case they enter bogus data and want to start over before the record is saved to the database? It would be nice to clear all the data they may have entered and place them back into a scenario where they can carry on and append a record to the database.
You need to put the following line of code behind a command button on the form.

[PHP]
DoCmd.DoMenuItem acFormBar, acEditMenu, acUndo, , acMenuVer70
[/PHP]

Mary
Dec 9 '06 #3
Birky
52
Thanks Mary,

I will try to better describe my issues within the Title on future posts. Your assistance was truly appreciated and helped fill in multiple pieces of the puzzle. I am new to Access and am trying to learn from documentation (“Access 2003 Bible” from Wiley publications). I must admit it was truly above me but I am now starting to understand how this all works. I do have a few other questions though.

Can you recommend a reference that would give examples of how to build objects within a form or report? I unfortunately learn via example and need to see the context and structure of the statement before I can grasp it.

How can I pass the focus back to the first object within a form after the Clear command button is selected?

Again, I really appreciate the help. Thanks GOD for people like you who are willing to help goobers like me..

Mike
Dec 11 '06 #4
MMcCarthy
14,534 Expert Mod 8TB
Thanks Mary,

I will try to better describe my issues within the Title on future posts. Your assistance was truly appreciated and helped fill in multiple pieces of the puzzle. I am new to Access and am trying to learn from documentation (“Access 2003 Bible” from Wiley publications). I must admit it was truly above me but I am now starting to understand how this all works. I do have a few other questions though.
You're welcome Mike.

Can you recommend a reference that would give examples of how to build objects within a form or report? I unfortunately learn via example and need to see the context and structure of the statement before I can grasp it.
Check out the thread called 'Links to useful Sites' near the top of the access forums.

How can I pass the focus back to the first object within a form after the Clear command button is selected?
just add the line ...

Expand|Select|Wrap|Line Numbers
  1. Me.ControlName.SetFocus 
after the undo statement

Mary
Dec 11 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Alex Wisnoski | last post by:
Access 97SR2-I am trying to create a Job Position data entry form based on a table. The form has 15 fields on it. I want to use a combo box to look in the table and see if the position number...
1
by: Alex.Wisnoski | last post by:
I have a data entry form with a combo box to look up an entrant's name. If the name is already in the table then it pulls up the record and that part of the form works fine. If the name isn't in...
1
by: gbb0330 | last post by:
Hi all i would like to thank Darryl, he helped me a lot now i have another problem LeBayNum is the primary key in relates to SeBayNum in tblSold relationship is one LeBayNUM to many...
6
by: Wayne | last post by:
I am designing a database which needs approximately 50 fields per record. The database user requires data entry to be via a single screen. If I follow good database design practice and split the...
7
by: PW | last post by:
Hi, I have a form with unbound fields on it. The user selects a record from a recordset and I populate the unbound fields. When I try to change the unbound quantity text box, Access 2003 tells...
8
by: SBC News Groups | last post by:
I have a field on a form that when a user enters a number, I want to verify that the number is already in another table. For example: If a user enters 100 in the control Bidder, I want to check...
2
by: Mark | last post by:
I have a form with two sub forms. The form is set to data entry. The form is bound directly to a table I have two buttons at the bottom of the screen. One button is named reject and one is named...
2
by: Matuag | last post by:
Hi All, I want to create following command buttons on a Form which users can edit. Save ( Save Changes made) Cancel ( Undo data changes) Exit ( Close form) I am using Macros for each of...
2
by: maxx429 | last post by:
Hi all, I am a VBA newb. I know probably just enough to be dangerous. :) Anyway, I have a Form that I am using <a href="http://allenbrowne.com/AppAuditCode.html">Allen Brown's Audit Trail</a> ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.