I'm writing a little piece of code to go behind a form that needs to add records to an existing table. Here's the line that VBA doesn't like:
The error says:
Compile error: Expected: =
I read a little (always a dangerous thing) about how to use AddNew, so I'm trying to supply the field names in the first Array, and the values in the second Array. My first field value is a date, my second is a string, and the last is an integer.
Code:
AllocationsRecordSet.AddNew ( _
Array("Month", "Service Category", "Minutes") _
, Array("Month_Begin", ServicesRecordSet.Fields("Service_Category"), "Months_Minutes"))
The error says:
Compile error: Expected: =
I read a little (always a dangerous thing) about how to use AddNew, so I'm trying to supply the field names in the first Array, and the values in the second Array. My first field value is a date, my second is a string, and the last is an integer.
Comment