Sorry for my dumb question. I programming in Access (VBA) and I’m trying to send a variable called machine into a sql code and then insert it into a table. But i have no idea how to do it. this is my code for so far:
Private Sub MachineToevoegen_Click()
Dim SQL As String
Dim Machine As String
Machine = Machine_keuze
SQL = "INSERT INTO Machines ([Machine]) VALUES(Machine)"
DoCmd.RunSQL SQL
End Sub
If someone could help me with this it would be great.