Hi,
I feel like I'm so close to solving a problem that has vexed me all day. My latest error when I attempt to update a table from an unbound form is a "Type Conversion Error". Here is the code:
DoCmd.RunSQL ("UPDATE [Participant Registration List] SET [Participant Registration List].[ACADEMY COHORT NUMBER]=' & Me.[ACADEMY COHORT NUMBER] & ', " & _
"[Participant Registration List].[COHORT START DATE]=' & Me.[COHORT START DATE] & ', " & _
"[Participant Registration List].[AGENCY NAMES]= '" & Me.[AGENCY NAMES] & "', " & _
"[Participant Registration List].[SEATS ALLOCATED]=' & Me.[SEATS ALLOCATED] & ', " & _
"[Participant Registration List].[EMPLOYEE ID NUMBER]= '" & Me.[EMPLOYEE ID NUMBER] & "', " & _
"[Participant Registration List].[EMPLOYEE LAST NAME]= '" & Me.[EMPLOYEE LAST NAME] & "', " & _
"[Participant Registration List].[EMPLOYEE FIRST NAME]= '" & Me.[EMPLOYEE FIRST NAME] & "', " & _
"[Participant Registration List].[EMPLOYEE HR TITLE]= '" & Me.[EMPLOYEE HR TITLE] & "', " & _
"[Participant Registration List].[EMAIL ADDRESS]= '" & Me.[EMAIL ADDRESS] & "', " & _
"[Participant Registration List].[PHONE NUMBER]= '" & Me.[PHONE NUMBER] & "', " & _
"[Participant Registration List].[LOS CITY]= '" & Me.[LOS CITY] & "', " & _
"[Participant Registration List].[TIME IN HR]= '" & Me.[TIME IN HR] & "', " & _
"[Participant Registration List].[GROUP]= '" & Me.[GROUP] & "', " & _
"[Participant Registration List].[AGENCY ABBREV]= '" & Me.[AGENCY ABBREV] & "'")
I think I understand that the type conversation error means that the code as written does not distinguish a text field from a number field from a datetime field. All three types are referred to in the above ("ACADEMY COHORT NUMBER" = NUMBER FIELD, "COHORT START DATE" = DATETIME FIELD, "SEATS ALLOCATED" = NUMBER FIELD, ALL OTHER FIELDS ARE 'SHORT TEXT' FIELDS) . . . but I don't know how to distinguish them. Please Please help.
I'd be so grateful to get some sleep tonight :)