LiquidMetal
New member
- Local time
- Today, 13:28
- Joined
- Dec 4, 2012
- Messages
- 5
Hi All
I am new and learning.
Please help me with this code:
MsgBox "Please Click Once Only"
If ("CostTypeID", "qryCompLensPrices", "PMDID='tblPMDP.PMDID'") = ("CostTypeID", "tblPMDP", "PMDID") Then
MsgBox "The Total Price has been Calculated"
Else
DoCmd.OpenQuery "qryAddCompCosts"
End If
I am trying to limit the number of times a query is run if costtypeid and PMDID in the query is equal to the same data in the storing table called tblPMDID.
Thanks for your help. Using Access 2010.
I am new and learning.
Please help me with this code:
MsgBox "Please Click Once Only"
If ("CostTypeID", "qryCompLensPrices", "PMDID='tblPMDP.PMDID'") = ("CostTypeID", "tblPMDP", "PMDID") Then
MsgBox "The Total Price has been Calculated"
Else
DoCmd.OpenQuery "qryAddCompCosts"
End If
I am trying to limit the number of times a query is run if costtypeid and PMDID in the query is equal to the same data in the storing table called tblPMDID.
Thanks for your help. Using Access 2010.