Avatar of iymanb
iymanb

asked on 

Is there a VBA code to let export a query from MS ACCESS file, export it as a TABLE to another MS ACCESS file ?

Is there a VBA code to let export a query from MS ACCESS file, export it as a TABLE to another MS ACCESS file ?
Microsoft AccessVBA

Avatar of undefined
Last Comment
iymanb
ASKER CERTIFIED SOLUTION
Avatar of John Tsioumpris
John Tsioumpris
Flag of Greece image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of iymanb
iymanb

ASKER

OK ,
This is fine, creating a TEMP table, then exporting is fine.

To create a temp table, isn't there a VBA code to replicate an existing query directy into a table, as the SQL statement is lengthy; and is difficult to put inside VBA code
Avatar of iymanb
iymanb

ASKER

The lines of VBA code you provided were really helpful , Thank you
Microsoft Access
Microsoft Access

Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.

226K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo