You need a table with the 3 fields you suggested: PartNo, DeptNo, and
LookupFile. For the LookupFile, you could us a Hyperlink type field. If
that's new, see:
Introduction to Hyperlink fields
at:
http://members.iinet.net.au/~allenbrowne/casu-09.html
In your data entry form, it's easy to choose the file that goes into the
hyperlink field, but right-clicking, using the Insert menu, or you could put
a command button beside the text box, with these 2 lines in its Click event
procedure:
Me.[LookupFile].SetFocus
RunCommand acCmdInsertHyperlink
If you want to programmatically fire up the hyperlink file, use
FollowHyperlink.
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users -
http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Don Sealer" <vze2t273@verizon.net> wrote in message
news:233yd.6243$152.2248@trndny01...[color=blue]
> I'm beginning to understand a little about lookups, but just a little.
> Here's another question I'm wondering about.
> I want to input a part# and then input a department code (G,D,B) and
> depending on the department code have Access find the corresponding file
> to
> lookup. In other words I could have a scenario like this
> Part# Department# lookup File
> 123456 G C:\File1
> 123456 D C:\File2
> 123456 B C:\File3
> So basically I have 3 differeent "lookup" files for each part# but which
> file that pops up is determined by the Department code.
> How would I make this happen?
> Thanks for your help,
> Don..............[/color]