G
Guest
I am trying to run a simple update query from within a VBA procedure using
calculated values I put in a form. However, the table is not updated when I
run the query using the parameters but will run successfully if I put in
explicit values.
I have four fields to update: XStat, NewDues, NewFees, and NewMisc based on
AcctNo. In the "Update To" I have the following syntax in the query:
[Forms]![frmMessage]![intStatus]
[Forms]![frmMessage]![curNewFees]
[Forms]![frmMessage]![curNewDues]
[Forms]![frmMessage]![curNewMisc]
In the "Criteria" I have: [Forms]![frmMessage]![lngAcctNo]
Each of these form fields are update correctly just before I call the query
using the DoCmd.OpenQuery "qryBillingRptUpt" but, the table I am trying to
update does not get updated and there is no error reported.
If I run the query directly by double clicking it and manually enter values
for each of the fields it runs successfully.
I am baffled at what I could be missing here. Any help would be appreciated.
Thanks,
Carl
calculated values I put in a form. However, the table is not updated when I
run the query using the parameters but will run successfully if I put in
explicit values.
I have four fields to update: XStat, NewDues, NewFees, and NewMisc based on
AcctNo. In the "Update To" I have the following syntax in the query:
[Forms]![frmMessage]![intStatus]
[Forms]![frmMessage]![curNewFees]
[Forms]![frmMessage]![curNewDues]
[Forms]![frmMessage]![curNewMisc]
In the "Criteria" I have: [Forms]![frmMessage]![lngAcctNo]
Each of these form fields are update correctly just before I call the query
using the DoCmd.OpenQuery "qryBillingRptUpt" but, the table I am trying to
update does not get updated and there is no error reported.
If I run the query directly by double clicking it and manually enter values
for each of the fields it runs successfully.
I am baffled at what I could be missing here. Any help would be appreciated.
Thanks,
Carl