ppete
03-21-2002, 04:24 AM
Is there a way to prompt the user for the name of the table to be created in a make table query?
TIA,
Pete
TIA,
Pete
|
View Full Version : Prompt user for table name in Make table query ppete 03-21-2002, 04:24 AM Is there a way to prompt the user for the name of the table to be created in a make table query? TIA, Pete ppete 03-21-2002, 05:24 AM I found the solution and it's quite simple. I took the sql from the query and added it to the VBA code behind a command button: Here goes: DTable = InputBox("Please enter a name for the output table", "?") mysql = "SELECT table1.Field1 AS F1, table1.Field2 AS F2, table.Field3 AS F3 etc… INTO " & DTable & " FROM table1 GROUP BY table1.Field1;" DoCmd.RunSQL mysql laterz, P |