I want to open my form as a blank?

J

jo

Hi I would like to open my form as a blank so that the info there now can not
be altered mistakenly by the user. But if i have the form as a Data Entry i
then cannot Find other records (Systems Find & Replace). Would you know how I
can do this if it can be done?? Thanks Jo
 
D

Douglas J. Steele

As you've discovered, setting the Data Entry property means that existing
data doesn't appear on the form.

See whether setting the form's Allow Edits property to False is what you
need.
 
J

jo

Hi Douglas thanks for your reply but when set Edits to false I can not edit
anything so this would be no good??
 
A

Allen Browne

Set the form's On Load property to:
[Event Procedure]

Then click the Build button (...) beside this.
Access opens the code window.

Insert this line between the other two:

Private Sub Form_Load()
If Not Me.NewRecord Then RunCommand acCmdRecordsGotoNew
End Sub
 
J

jo

Hi Allen that works a treat!! Briliant exactly what I wanted thank you!!
Jo

Allen Browne said:
Set the form's On Load property to:
[Event Procedure]

Then click the Build button (...) beside this.
Access opens the code window.

Insert this line between the other two:

Private Sub Form_Load()
If Not Me.NewRecord Then RunCommand acCmdRecordsGotoNew
End Sub

--
Allen Browne - Microsoft MVP. Perth, Western Australia

Reply to group, rather than allenbrowne at mvps dot org.

jo said:
Hi I would like to open my form as a blank so that the info there now can
not
be altered mistakenly by the user. But if i have the form as a Data Entry
i
then cannot Find other records (Systems Find & Replace). Would you know
how I
can do this if it can be done?? Thanks Jo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top