Problem with ADD button

  • Thread starter Thread starter lin
  • Start date Start date
L

lin

I have a main form and sub form in Form1.I set up the main
form in form header and sub form in form details. The
default view of my subform is datasheet. My subform is
bringing all the history of a specific person according
to the text field "Name" in the Main form.(I set up the
criteria Suform.Name=Mainform.txtxName) I have an ADD
button in the form. My problem is when I click on ADD
button I am getting a message box like "Enter Name
Parameter". when I click on OK or Cancel, It disappeared
and the entire form is ready to add new records.Is there
any way I can avoid that Message box enter Parameter? Any
help?
 
Far out! So much for KISS.

I think your problem is that you have made the form overly
complicated.

You put an add button on the form. Which form? You've
mentioned three.

I think taking a big step back from this problem and
having a look at the design of the form is your best
answer.
 
That parameter message usually means that the record source for the "Add"
form and/or the form itself is trying to display a control called "name".
When it can not be found, it prompts you to enter its value. Look for a
control named "name"; if it is needed, bind it to a table/query field, if
not needed, delete it.
-Ed
 
Back
Top