J
Junior
Setting the value of a variable in a sub by referencing a query [QLoc]as
below:
how could i eliminate [Qloc] and set the value using VBA in the sub?
strLoc = Nz(DMax("[LocID]", "[QLoc]"), "ZZ")
Qloc SQL:
SELECT [TblLocationDetail].[AppID], [TblLocationDetail].[LocID]
FROM TblLocationDetail
WHERE ((([TblLocationDetail].[AppID])=[Forms]![frmAppenter]![txtAppId]));
below:
how could i eliminate [Qloc] and set the value using VBA in the sub?
strLoc = Nz(DMax("[LocID]", "[QLoc]"), "ZZ")
Qloc SQL:
SELECT [TblLocationDetail].[AppID], [TblLocationDetail].[LocID]
FROM TblLocationDetail
WHERE ((([TblLocationDetail].[AppID])=[Forms]![frmAppenter]![txtAppId]));