Hi Eric,
There is not a command line argument for this but you can achieve what you
need by using a Rule. Here are sample steps based on the Northwind
database, the Customers table and have this open to a specific customer ID:
- Create a new InfoPath solution based on the Customers table from Northwind
- Expand the queryFields and drag the CustomerID field to the query section
- Expand the dataFields, drag the Customers table to the data section and
choose Repeating Section with Controls
- From the Tools menu choose Form Options
- Select the Open and Save tab
- Click the Rules button
- Click Add
- Click Add Action
- From the Action box select: Set s field's value
- Click the button next to the Field box, expand queryFields, select the
CustomerID field and click OK
- In the Value field, enter: BERGS and click OK
- Click Add Action
- From the Action box select: Query using a data connection
- From the Data Connection box choose Main Connection and click OK
- Click OK 3 times to get back to your form
- Preview - you should automatically see the record for BERGS!
I hope this helps!
Scott L. Heim
Microsoft Developer Support
This posting is provided "AS IS" with no warranties, and confers no rights.