A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Dealing with data on a form



 
 
Thread Tools Display Modes
  #1  
Old December 12th, 2006, 10:47 PM posted to microsoft.public.access.forms
Access the positive
external usenet poster
 
Posts: 1
Default Dealing with data on a form

I have a form which is for ordering things. It will be filled out by users.
Each time the form is brought up I want it to show a new blank record, ready
for someone to enter. 1) How do I specify on loading the form that a blank
record should be displayed? 2) How do I prevent the user from scrolling
through other records? 3) I have a button at the bottom of the form called
"submit" where I want the record saved and the form to end, how do I do that?
I have just recently started using Access so please be specific on your
answers. Thanks
B
  #2  
Old December 12th, 2006, 11:56 PM posted to microsoft.public.access.forms
Damian S
external usenet poster
 
Posts: 741
Default Dealing with data on a form

Hi,

If you want your users to only ever enter new records and not be able to
edit existing ones, set the "Data Entry" value to YES in the Form properties.

Access saves data automatically by default, so there's no real reason for a
"Save" button as such, but to force a save you use the following:

if me.dirty then
docmd.runcommand accmdSaveRecord
end if

To close a form, use the following:

docmd.close

Hope this helps.

Damian.

"Access the positive" wrote:

I have a form which is for ordering things. It will be filled out by users.
Each time the form is brought up I want it to show a new blank record, ready
for someone to enter. 1) How do I specify on loading the form that a blank
record should be displayed? 2) How do I prevent the user from scrolling
through other records? 3) I have a button at the bottom of the form called
"submit" where I want the record saved and the form to end, how do I do that?
I have just recently started using Access so please be specific on your
answers. Thanks
B

 




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:50 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.