Gasman
Enthusiastic Amateur
- Local time
 - Today, 14:51
 
- Joined
 - Sep 21, 2011
 
- Messages
 - 17,413
 
I use this from a Maintain Version Form button
	
	
	
		
Tip: Build the string, then you can debug it and execute it.
You have opening single quote, but no closing single quote.?
 
		Code:
	
	
	Private Sub cmdUpdate_Click()
Dim db As DAO.Database
Dim strSQL As String
Set db = CurrentDb()
strSQL = "UPDATE [tbl-fe_version] SET [tbl-fe_version].fe_version_number = " & Chr(34) & Me.txtVersion & Chr(34)
db.Execute strSQL
strSQL = "UPDATE [tbl-version_fe_master] SET [tbl-version_fe_master].fe_version_number = " & Chr(34) & Me.txtVersion & Chr(34)
db.Execute strSQL
Me.Refresh
Set db = Nothing
End Sub
	Tip: Build the string, then you can debug it and execute it.
You have opening single quote, but no closing single quote.?