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.
 
Back
Top