sql - Command DELETE dont work in vba -


I have a project that adds and removes the date, the following code in the paragraph:

  Set DBS = Enter the current DB DBS.exe "TMP" _E "(Diamonds) values ​​(" _ and "'' and Tmp7 & amp;" ') "  

Delete the type of tmp7 date type such as dd-mm-yyyy and completely

delete the following code:

  set dbs = CurrentDb dbs. Execute "DELETE * FROM TMP" _ and "where DIIMES = #" A "???? & Amp; Tmp7 & amp; "#";   

The problem is that only remove more than 12 days, I think, if the day is less than 12, then it is defined as mm-dd-yy.

the tmp7 is a string contatination string.

How can I do a SQL Pass DD-MM-YYY?

Uses the US date format, so when you pass DD / MM / YYYY If you do, then it will apply MM / DD / YYYY. As you clearly understand more than 12 dates, the example 13/10/2014 will be deemed as 13 October 2014. But in our eyes 7/10/2014 is the 7th of October 2014, but is married to entry, so it interprets it as July 10, 2014.

Trouble can be avoided by formatting it correctly, try using it, set dbs = CurrentDb dbs.Execute "TMP from DIAS = "& Delete; _ Format (tmp7, "\ # mm \ / dd \ / yyyy \ #")

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -