I need to update a field named BillMonth in a table named TW_Data with the contents of two comboboxes, combo4 and combo6.
Combo4 contains two fields, the month name, ie January February... The second field contains the month number ie 01,02...
Combo6 contains the 4 digit year.
I need to update the field BillMonth in table TW_Data to the month number, "-" and year. Like 01-2014.
My code:
UPDATE TW_Data SET TW_Data.BillMonth = [Forms]![A-Prep]!combo4.column(1) & "-" & combo6
WHERE (((TW_Data.BillMonth) Is Null));
The error I get is "Undefined function '[Forms]![A-Prep]!combo4.column' in expression."
Any help is appreciated.
Ron--
Combo4 contains two fields, the month name, ie January February... The second field contains the month number ie 01,02...
Combo6 contains the 4 digit year.
I need to update the field BillMonth in table TW_Data to the month number, "-" and year. Like 01-2014.
My code:
UPDATE TW_Data SET TW_Data.BillMonth = [Forms]![A-Prep]!combo4.column(1) & "-" & combo6
WHERE (((TW_Data.BillMonth) Is Null));
The error I get is "Undefined function '[Forms]![A-Prep]!combo4.column' in expression."
Any help is appreciated.
Ron--