I have a parameter query:
SELECT [Account Information].AccountNbr, [Account Information].VendorID
FROM [Account Information]
WHERE ((([Account Information].AccountNbr) Like '*-' & (1+Val(Mid([Forms]![frmAcctSearch]![frmVendorIDAcctQrySub].[Form]![AccountNbr],InStrRev([Forms]![frmAcctSearch]![frmVendorIDAcctQrySub].[Form]![AccountNbr],'-')+1)))));
If the above query does not return any results then I would like to set the calculated parameter from above as the default value for [frmAccountInfoUpdate].AccountNbr
Thanks for your input!
SELECT [Account Information].AccountNbr, [Account Information].VendorID
FROM [Account Information]
WHERE ((([Account Information].AccountNbr) Like '*-' & (1+Val(Mid([Forms]![frmAcctSearch]![frmVendorIDAcctQrySub].[Form]![AccountNbr],InStrRev([Forms]![frmAcctSearch]![frmVendorIDAcctQrySub].[Form]![AccountNbr],'-')+1)))));
If the above query does not return any results then I would like to set the calculated parameter from above as the default value for [frmAccountInfoUpdate].AccountNbr
Thanks for your input!