uncle_scrooge
03-08-2004, 05:52 AM
I have some problems with an update string in my database:
This is working:
strSQL12 = "UPDATE tablename SET age_group = 'Uninvolved' WHERE sample = 'Uninvolved (R.S.)'"
but if i try to put the tablename in a string(table) like this i get an error:
strSQL12 = "UPDATE" & table & "SET age_group = 'Uninvolved' WHERE sample = 'Uninvolved (R.S.)'"
Anyone know why?
This is working:
strSQL12 = "UPDATE tablename SET age_group = 'Uninvolved' WHERE sample = 'Uninvolved (R.S.)'"
but if i try to put the tablename in a string(table) like this i get an error:
strSQL12 = "UPDATE" & table & "SET age_group = 'Uninvolved' WHERE sample = 'Uninvolved (R.S.)'"
Anyone know why?