johndohnal
Registered User.
- Local time
- Today, 01:48
- Joined
- Sep 12, 2013
- Messages
- 41
I would like to use concatenation of a form field with a string to be used as the Field and part of the Update To expressions of an update query. I can enter the Field name and the Update To manually, but I want them to be able to change when the drop-down selections in my form change.
For example, If “Quarantine” is selected in the “To” drop-down of my Receipt form, I’d like for the first Field name in the update query to be “QuarantineInv” which would be something like [forms]![frmReceipt]![To]&”Inv” and the Update To field would be [tblMaterialSpecifications].[QuarantineInv]+[forms]![frmReceipt]![Quantity]
But instead of [tblMaterialSpecifications].[QuarantineInv] in the Update To field, I want it to be something like
[tblMaterialSpecifications].[([forms]![frmReceipt]![To]&”Inv”)]
This doesn’t work, but can anyone give me a solution that will work? Any help will be greatly appreciated.
For example, If “Quarantine” is selected in the “To” drop-down of my Receipt form, I’d like for the first Field name in the update query to be “QuarantineInv” which would be something like [forms]![frmReceipt]![To]&”Inv” and the Update To field would be [tblMaterialSpecifications].[QuarantineInv]+[forms]![frmReceipt]![Quantity]
But instead of [tblMaterialSpecifications].[QuarantineInv] in the Update To field, I want it to be something like
[tblMaterialSpecifications].[([forms]![frmReceipt]![To]&”Inv”)]
This doesn’t work, but can anyone give me a solution that will work? Any help will be greatly appreciated.