Default Parameter on form open

  • Thread starter Thread starter msmuzila
  • Start date Start date
M

msmuzila

i have a form that gets info from a query. The parameter in the query
is linked to the combo on the form

[Forms]![Part_Monthly]![Combo36]

I need a way to have a default value of 1010 when I open the form so
that it does not ask me for the parameter value.

Thanks
Matt
 
i have a form that gets info from a query. The parameter in the query
is linked to the combo on the form

[Forms]![Part_Monthly]![Combo36]

I need a way to have a default value of 1010 when I open the form so
that it does not ask me for the parameter value.

Thanks
Matt

Is the bound column of the combo box a Number datatype or Text?
If a Number, try:

IIf IsNull([forms]![Part_Monthly]![Combo36],1010,
[forms]![Part_Monthly]![Combo36]

If it's text use "1010" instead of 1010.
 
this is what i put in the crosstab criteria for the parameter

IIf(IsNull([forms]![Part_Monthly]![Combo36]),1010,[forms]![Part_Monthly]![Combo36])

when i open my form it still asks me for
[forms]![Part_Monthly]![Combo36]

when i hit cancel on this message box, it goes to the correct spot, so
is there a way to automatically cancel the parameter message box?
 

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

Back
Top