Hi,
In Nothwind, have a new form, AskCategory, with one combo box with all the
possible categories (bind its row source to the table Categories, have its
pk remembered, which the wizard will do by default). Also add a button to
this form with the code:
-------------------------------------
Option Compare Database
Option Explicit
Private Sub Command2_Click()
If (Not IsNull(Forms!AskCategory!Combo0)) Then
DoCmd.RunSQL "UPDATE products SET unitPrice = unitPrice * 1.00 WHERE
CategoryID=FORMS!AskCategory!Combo0"
End If
End Sub
---------------------------------------
Save the form AskCategory. Now, open it, select a category, and click the OK
button. The form AskCategory acts like a "custom" form asking for
parameters and the query runs once the user click the ok button.
Hoping it may help,
Vanderghast, Access MVP