Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Lock form to current niput only

Status
Not open for further replies.

moles

Technical User
Jul 29, 2002
17
US
I have finished creating a form which is linked to a table where all the data enetered in the form is stored. Data is entered in this particular form once a day and is recorded uniquely in the table by date. The problem I have is that when a user opens the form to enter data they have the ability to scroll back and see previous days data using the scroll wheel on the mouse. Is there any way I can lock my form so users only have access to the current form in which they are entering data??
 
If you only want to use your form for entering a single new record each day, and not for amending old records, thensetting the forms Data Entry property to Yes will ock it to the current record only and stop the scroll wheel performing this annoying little glitch!

hope this helps

Nigel
 
Nigel is correct in his advice, but there may be other things to consider. If you set the DataEntry property to YES, then the form will open "blank", e.g. in preparation to ADD a new record. None of the existing records will be visible.

If you don't mind the person SEEING the other records, but would like to make them READONLY, you can set the AllowEdits and AllowDeletions to NO, the AllowAdditions to YES, and the DataEntry to NO.

This will show the other records, but make them un-editable and un-deletable. And also allow entry of a NEW record.

Jim How many of you believe in telekinesis? Raise my hand...
Another free Access forum:
More Access stuff at
 
Form's Data Entry property: Yes

Sub Form_AfterInsert()
Requery
End Sub

Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top