I want to insert some values from a table to another in a sql query.
But
My tables don’t have the same format in the fields, for instance I ask to transfert a text to a numeric.
It asks me whether or not I want to change the fields type inside my destination table.
I don’t want this warning box to appear, I want it to automatically convert the type without asking the user.
Most of all, I don’t want to change the SQL Query to include cdbl() , IsNumeric() or other stuffs
My code looks like
strSQL = "Delete * FROM DestinationTable;"
DoCmd.RunSQL strSQL
strSQL = "INSERT INTO DestinatonTable(Month, Date, Number1, Name, ShortName, Partner, Number2 .... and so on .....)"
strSQL = strSQL & " SELECT StartTable.F1, StartTable.F2, StartTable.F3, ...... and so on ..."
strSQL = strSQL & " FROM StartTable WHERE (IsNumeric([F14])<>0);"
DoCmd.RunSQL strSQL
Thank you all for reading and help
You could try turning warnings off before you run the query