Name for this mdb file in VBA

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,
Using VBA and the advice received from a previous posting, I put the
following information into a table

For Each fld In tdf.Fields
.AddNew
!TableName = tdf.Name
!FieldName = fld.Name
.Update
Next

Now, I see that I also need to add the name of the current mdb file to the
list.
what would be the correct code to do this?

How would I complete the following line?...

!MDB_File_Name = ??????

thank you.

Keith
 
CurrentProject.Name if you want just the file name, or
CurrentProject.FullName if you want the full path and name.
 
CurrentDb.Name will return the full path and name of the mdb you are working
in.
 
thank you

Brendan Reynolds said:
CurrentProject.Name if you want just the file name, or
CurrentProject.FullName if you want the full path and name.
 

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

Back
Top