Moving record from one table to another using inputbox

papasmurfuo9

Registered User.
Local time
Today, 13:14
Joined
May 28, 2014
Messages
69
Hi
please could someone tell me whats wrong with the below

im trying to get a record from tbl_new_accounts to tbl_closed_accounts, based on the number entered in a input box

Code:
Dim StoreNumber As String
StoreNumber = InputBox("Please Enter The Store Number", "")

CurrentDb.Execute ("INSERT INTO Tbl_Closed_Accounts SELECT Tbl_New_Accounts.* From Tbl_New_Accounts WHERE (((Tbl_New_Accounts.Fld_Store_Number)=" & StoreNumber & "));")

many thanks
 

Users who are viewing this thread

Back
Top Bottom