Error de sintaxis con Insert INTO
Ya casi termino mi base de datos. Lo último que debo hacer es agregar un botón el cual me permita guardar un registro con los datos ingresados en los diferentes cuadros de texto. Mi formulario es independiente.
Mi diseño de tabla
Lo que puse:
Private Sub Guardar_Click()
CurrentDb. Execute "INSERT INTO Institucion1 (Nombre, Apellido, Direccion, Telefono, Zona, Cobrador, Socio, Cuota, Ene, Feb, Mar, Abr, May, Jun, Jul, Ago, Sep, Oct, Nov, Dic, Observaciones)" _
"VALUES('" _
& Me.txtNombre & "','" & Me.txtApellido & "','" & Me.txtDireccion & "','" & Me.txtTelefono & "','" & Me.txtZona & "','" & Me.txtCobrador & "','" & Me.txtObservaciones & "' " _
& "" & Me.txtSocio & "," & Me.txtCuota & "," & Me.txtEne & "," & Me.txtFeb & "," & Me.txtMar & "," & Me.txtAbr & "," & Me.txtMay & "," & Me.txtJun & "," & Me.txtJul & "," & Me.txtAgo & "," & Me.txtSep & "," & Me.txtOct & "," & Me.txtNov & "," & Me.txtDic & " "
dbFailOnError
End Sub