P
pepenacho
Good morning:
I have a two part question. I need to manipulate a table name a bit and then
export it into a CSV file on my hardrive. I have most of the pseudo-code
figured out; these are the only (below) pieces that will be tricky for me. My
handy Wrox book does not seem to have this anywhere, but by infrence from my
intro to VB.Net class, this should be possible - so this is a product of my
imagination. Thanks in advance. Pepenacho
Let's say I have a tblA
This is the p-code:
Private Sub ()
Dim variable1 As String
variable1=current date
'this is the part I don't know, how do I assign the value of today's date to
the variable; I need the format of the date to be i.e. 03312005
DoCmd.Rename tblA as variable1
DoCmd.TransferDatabase acExport, "Microsoft Access", "C:\mytbls", acTable,
variable1, 03312005.csv
'this is the second part I do not know how to pull off; I need some sort of
a DoCmd.XXXX method or something to export a copy of the tbl to a CSV file on
the hard drive; I know the above is incorrect
End Sub
I have a two part question. I need to manipulate a table name a bit and then
export it into a CSV file on my hardrive. I have most of the pseudo-code
figured out; these are the only (below) pieces that will be tricky for me. My
handy Wrox book does not seem to have this anywhere, but by infrence from my
intro to VB.Net class, this should be possible - so this is a product of my
imagination. Thanks in advance. Pepenacho
Let's say I have a tblA
This is the p-code:
Private Sub ()
Dim variable1 As String
variable1=current date
'this is the part I don't know, how do I assign the value of today's date to
the variable; I need the format of the date to be i.e. 03312005
DoCmd.Rename tblA as variable1
DoCmd.TransferDatabase acExport, "Microsoft Access", "C:\mytbls", acTable,
variable1, 03312005.csv
'this is the second part I do not know how to pull off; I need some sort of
a DoCmd.XXXX method or something to export a copy of the tbl to a CSV file on
the hard drive; I know the above is incorrect
End Sub