Before explaining the subject at hand, I would first like to thank those who have provided me with support in Tek-Tips forums. I venture into learning MS Access a few month back and took a greater interest in coding again. WIthout your support I would have found it harder to understand, as most books do not tell the whole story.
Well back to the subject. I am trying to update records into a table using
DoCmd.RunSQL "UPDATE TEMPTBL SET TEMPTBL.F6 = StrTablename, TEMPTBL.F8 = IIF(month(DATE())< 10,0) & Month(date()) & IIF(Day(DATE()) < 10,0) & Day(Date()) & Year(Date())"
The issue is that StrTablename string is not accepting automatically and a Msgbox keeps appearing stating "Enter a parameter value" for strtablename. I enter the parameter value and the update completes it mission. However, I don't want a MsgBox to appear and want the process to run automatically.
Prior to running SQL UPDATE:
I assign the variable Strtablename as String
I then code it with a string Strtablename = "Y"
Is the syntax correct in the SQL Update command?
How can I get it to work without any msgbox interferring?
Sincerely
Juan
Well back to the subject. I am trying to update records into a table using
DoCmd.RunSQL "UPDATE TEMPTBL SET TEMPTBL.F6 = StrTablename, TEMPTBL.F8 = IIF(month(DATE())< 10,0) & Month(date()) & IIF(Day(DATE()) < 10,0) & Day(Date()) & Year(Date())"
The issue is that StrTablename string is not accepting automatically and a Msgbox keeps appearing stating "Enter a parameter value" for strtablename. I enter the parameter value and the update completes it mission. However, I don't want a MsgBox to appear and want the process to run automatically.
Prior to running SQL UPDATE:
I assign the variable Strtablename as String
I then code it with a string Strtablename = "Y"
Is the syntax correct in the SQL Update command?
How can I get it to work without any msgbox interferring?
Sincerely
Juan