G
Guest
I am attempting to create an append query. The area that I am having a problem with is that I want to have the query question the user to specify a value for the 'where' condition. Normally I would use the [enter value here] interface and the user would type the response for the query to run. However, to eliminate any chance of user-input typos, I would rather have the user select from a pick list (combo box) to use in the query. I have a separate table set up that I can use for the combo box values
The object is to have the append query use the combo box to select a <> condition where it would append all records that do not meet the value selected - thereby all other records would be written to another table. Then another query would be used to delete those same records (using the same techinque) from the first table. All this to be combined in a macro.
Sample data structure
table1 - table that I want to move data fro
useri
l_nam
compan
departmen
etc..
table2 - lookup table used for pick list (combo box) value
departmen
table3 - shadow table of table1 - to store the appended data
useri
l_nam
compan
departmen
etc..
Sadly, my knowledge of VBA is non-existant, so if If anyone can shed any light on how to use a combo box with a query I would greatly appreciate it.
The object is to have the append query use the combo box to select a <> condition where it would append all records that do not meet the value selected - thereby all other records would be written to another table. Then another query would be used to delete those same records (using the same techinque) from the first table. All this to be combined in a macro.
Sample data structure
table1 - table that I want to move data fro
useri
l_nam
compan
departmen
etc..
table2 - lookup table used for pick list (combo box) value
departmen
table3 - shadow table of table1 - to store the appended data
useri
l_nam
compan
departmen
etc..
Sadly, my knowledge of VBA is non-existant, so if If anyone can shed any light on how to use a combo box with a query I would greatly appreciate it.