Hi Trevor,
I'm not sure I understand what you mean by "on a daily basis". Do you
want to export
(a) one file every day, containing that day's (or the previous day's)
data?
(b) individual files each containing the data for a day you specify?
(c) one file for every day for which there are records in the table?
For any of these, you'll need to
1) create a query that returns a day's data formatted and sorted the way
you want it. For (a) this would contain a criterion on the Date field of
something like Date()for "today" or Date()-1 for "yesterday".
By the way, this is one main reason it's a bad idea to use words like
"Date" and "Name" as the names of fields: It's confusing, because
they're also names of common functions or properties in Access.
For (b) I'd use a parameter query that asks for the date.
For (c) I'd start with a parameter query, but would later just use its
SQL statement in VBA code.
2) Export the query manually, clicking the Advanced... button in the
text export wizard and saving an export specification.
3)(a) Set up a command button on a form that has code like this in its
Click event procedure:
Dim strFileSpec As String
strFileSpec = "D:\Folder\Subfolder\" _
& Format(Date(), "mmddyy") & ".txt"
DoCmd.TransferText specifying the kind of export, query name,
specificiation name and strFileSpec
3(b) As for (a): the query will ask for the date.
3(c) gets a bit more complicated. How much do you know about SQL and
VBA?