> I have Access 2003, but in the heading of the file it says “Access 2000 File
> Format.” Don't know if my version or file is up to date enough for openargs.
[quoted text clipped - 55 lines]
>> going way back) you can set a value in a hidden control on your form and
>> have the report reference that or use a global variable.
You can use OpenArgs in Access 2003, but you don't really need to.
Simplest way is to add an OptionGroup to your form (instead of using
the 2 command buttons).
Add 2 radio buttons to the group.
Option1 = "Commercial Invoice"
Option2 = "Factura Comercia"
Then just one command button to open the report.
DoCmd.OpenReport "Invoice", acViewPreview, ,"[ProjectID]=" &
Me!ProjectID
Have an unbound control in the report header.
Set it's control source to:
=Choose(forms!FormName!OptionGroupName,"Commercial Invoice","Factura
Commercia")
The form must be open when the report is run. Depending upon the
selected option, either the English or Spanish text will display.

Signature
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
thedanmp - 30 Mar 2007 22:20 GMT
That worked, thanks a lot!!!
One more thing really fast while I'm on the topic. I would also like to
have the invoice header fields like "description" and "unit price" and
"quantity" be in English or Spanish based on the choice in the option group
on the form. I attempted to constuct an iif function in the control source
of the text field in the report. Something like this:
=IIf([Invoicing]=1,"Quantity",IIf([Invoicing]=2,"Cantidad")
(invoicing is the name of my option group and 1 being the option number for
"Commercial Invoice" and 2 being the option number for "Factura Comercial")
This function is not working. Can you see anything wrong with my function
that I could try?
> > I have Access 2003, but in the heading of the file it says “Access 2000 File
> > Format.” Don't know if my version or file is up to date enough for openargs.
[quoted text clipped - 76 lines]
> The form must be open when the report is run. Depending upon the
> selected option, either the English or Spanish text will display.
fredg - 31 Mar 2007 01:17 GMT
> That worked, thanks a lot!!!
>
[quoted text clipped - 92 lines]
>> The form must be open when the report is run. Depending upon the
>> selected option, either the English or Spanish text will display.
Improperly written IIf statement.
1) Always make sure that the number of Open parenthesis minus the
number of close parenthesis = 0.
You have 2 open but just 1 close.
2) You have just the 2 choices, so if the value isn't 1, then it must
be 2.
=IIf([Invoicing]=1,"Quantity","Cantidad")
However, the Option Group is on the form, not on the report (isn't
that correct?), so you need to use the following syntax:
=IIf(forms!YourFormName![Invoicing]=1,"Quantity","Cantidad")

Signature
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail