Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic foldernames

Status
Not open for further replies.

Bob500

Technical User
Aug 8, 2003
65
EU
Hi,

I have this code to open a tiff from access, based on the primary key of the current record in focus:

filename= "c:\docs\tiffs\" & Me!primarykey & ".tiff"

How could I adapt this to locate the file in a folder named the same as the primark key.

ie.

filename= "c:\docs\tiffs\'primarykey'" & Me!primarykey & ".tiff"

Thanks!

 
No worries I got it....

tiffName = "c:\access\ipcis\" & Me!ipcisID & "\" & Me!ipcisID & ".doc"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top