Reference a table field in VBA

C

cunger28

I've got a current Access project that I'm building. The source files are
downloaded reports and imported through VBA functions. I'm timestamping the
source files during the import process. I now need to reference that
particular timestamp (it will only be one timestamp) and use it as a variable
in an export function later on in my VBA.

Here is an example of my datapoint

Sourcetable: sourcetable_1
Field: Run_Dte

Variable of Run_Dte needed

Export:
DoCmd.RunSQL ("SELECT A, B, C INTO [Excel 8.0;Database=C:\QC_PREVIEW_" &
Format(Run_Dte, "yyyy-mm-dd hhmmss") & ".xls].QC " & _
"FROM qry_QC_Preview")

Hope that makes sense and thanks in advance for replies given....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top