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!

New record in form help 1

Status
Not open for further replies.

sparkyout

Technical User
Jun 5, 2003
36
US
I have [frmCustomers] which displays companies and addresses.

A user can create new "RGA number(s)" for a company via [frmNewRGA]. They can access the form via a control button where I used the wizard to "open form' [frmNewRGA]

Here's my problem. When [frmNewRGA] opens it shows all the records specific for each company. I want the fields to be empty for a new record. [RGAid] is an autonumber. Users can view all "RGA numbers" on [frmCustomers].

How do I set [frmNewRGA] to be blank once opened via the control button on [frmCustomers], so users can create a new RGA number?

 
Hey Sparky,

If you are going to open the form in this manner...I would suggest creating a macro that will open the form in add mode. Then delete the button that you've already created - create another button, using the wizard and attach it to the macro.

Good Luck [bigcheeks]
 
Hi!

One thing to try, is using the datamode argument of the openform method:

[tt]docmd.openform,,,,acformadd[/tt]

Else, you could try setting the DataEntry property of the form to Yes.

Roy-Vidar
 
Roy,

I set data entry to "Yes" and it worked like a charm. Thanks so much. Wish I spent less time on this and posted sooner.
-Kim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top