I have Insert Into SQL that I use in a function and it works.
In it I specify the field names in the target Table and the respective Values that I want inserted.
Is it possible to do a 'generic' insert where I just say something like [pseudo code]:
Insert Into TableB . . . no field names specified . . .
In "\\Path\DBName.accdb"
Everything from TableA where MyDate is Date() -30
??
I want to archive data from several Tables into their Identically-Structured Archive replica Tables in another DB using that Date() - 30 filter.
I'm thinking of passing the Table Name and its Date Field Name into the SQL without having to pass in a field list for each of the Tables.
I hope I've explained what I need clearly.
Thanks!!