I have 2 tables. Table1 (tblPicture) is the main table needed for my form and contains a column called Picture that intends to contain the path to a bunch of pictures. This table is currently empty.
Table2 (tblCaps) has the path information in separate fields. For example, in tblCaps I have:
FilePath | FileName | FileExt
C:\Users\Jeff\Documents\Caps\Pics | L1A1 | bmp
C:\Users\Jeff\Documents\Caps\Pics | L1A2 | bmp
etc for 1200+ rows
I have created a query (Caps Query)
So now I have
Caps Query
Location
C:\Users\Jeff\Documents\Caps\Pics\L1A1.bmp
C:\Users\Jeff\Documents\Caps\Pics\L1A2.bmp
etc for 1200+ rows.
What I need to do is take the value from Location in Caps Query and add the values to the Picture column in tblPicture so I can view the pictures in my form (the form is working if I can just get all the paths in tblPicture(Picture).
I also have some more fields in tblPicture that I need populated based on the value of Location. For example, for Caps Query(Location): C:\Users\Jeff\Documents\Caps\PicsL1A1.bmp, I would like the following fields populated in tblPicture.
TileLocation | TileNumber | CapPosition
L | 1 | A1
Please help a newbie with minimal access and vba experience. Thanks
Table2 (tblCaps) has the path information in separate fields. For example, in tblCaps I have:
FilePath | FileName | FileExt
C:\Users\Jeff\Documents\Caps\Pics | L1A1 | bmp
C:\Users\Jeff\Documents\Caps\Pics | L1A2 | bmp
etc for 1200+ rows
I have created a query (Caps Query)
Code:
SELECT [FilePath] & "\" & [FileName] & "." & [FileExt] AS Location
FROM Caps;
So now I have
Caps Query
Location
C:\Users\Jeff\Documents\Caps\Pics\L1A1.bmp
C:\Users\Jeff\Documents\Caps\Pics\L1A2.bmp
etc for 1200+ rows.
What I need to do is take the value from Location in Caps Query and add the values to the Picture column in tblPicture so I can view the pictures in my form (the form is working if I can just get all the paths in tblPicture(Picture).
I also have some more fields in tblPicture that I need populated based on the value of Location. For example, for Caps Query(Location): C:\Users\Jeff\Documents\Caps\PicsL1A1.bmp, I would like the following fields populated in tblPicture.
TileLocation | TileNumber | CapPosition
L | 1 | A1
Please help a newbie with minimal access and vba experience. Thanks