I have a main table that is called 'Floor' which has several fields in it RefID being one of these. Also there is FlrID. One is for the actual building you are in the other will be for the floor level you are on as you do the site survey.
I have another table called Block and another Level.
The block table has two field names in it thus RefID and Blk. (This is actually a block or building on a site)
RefID is a primary key and is used as a unique number 1,2,3...6 so on while the actual Blk has the actual name or letter given to the building ie Main Hall, B blk, Main Entrance ....and so on.
The Level table is similar to the Block table in that it has a FlrID and Flr.
One being primary and unique and the Flr being the floor name ie Ground, Basement etc etc.
The RefID in the floor table is then linked to the RefID in the Block table. Same for the Level table. I then use a combo box to lookup the data but ask it to display the 2nd column data rather than the first which is obviously the RefID value, using the 'Column Count' setting. This looks up the data in the linked table but then displays the adjacent (2nd) column.
I use at the minute a field on the form (at this stage I am not writing the value to the table just getting it to display on the form) to concatenate the Block and Level values of each separate table. Hence, i put this in my 'Control Source' for the textbox on my form: =[Blk] & [Lev]
Its hard for me to explain without a diagram but here goes:
What I want is for the field on the Main form to display the concatenated results of the 2nd column in the 'Block' linked table and the 2nd column in the 'Level' linked table. At present it is only displaying the 1st column values.
Ultimately I will want it to write the concatenated data to a table field but I need to think about that further as it will be doing it every time I open a record which will be excessive and slow things down. But for now I just need the correct columns concatenated.
Cheers.
I have another table called Block and another Level.
The block table has two field names in it thus RefID and Blk. (This is actually a block or building on a site)
RefID is a primary key and is used as a unique number 1,2,3...6 so on while the actual Blk has the actual name or letter given to the building ie Main Hall, B blk, Main Entrance ....and so on.
The Level table is similar to the Block table in that it has a FlrID and Flr.
One being primary and unique and the Flr being the floor name ie Ground, Basement etc etc.
The RefID in the floor table is then linked to the RefID in the Block table. Same for the Level table. I then use a combo box to lookup the data but ask it to display the 2nd column data rather than the first which is obviously the RefID value, using the 'Column Count' setting. This looks up the data in the linked table but then displays the adjacent (2nd) column.
I use at the minute a field on the form (at this stage I am not writing the value to the table just getting it to display on the form) to concatenate the Block and Level values of each separate table. Hence, i put this in my 'Control Source' for the textbox on my form: =[Blk] & [Lev]
Its hard for me to explain without a diagram but here goes:
What I want is for the field on the Main form to display the concatenated results of the 2nd column in the 'Block' linked table and the 2nd column in the 'Level' linked table. At present it is only displaying the 1st column values.
Ultimately I will want it to write the concatenated data to a table field but I need to think about that further as it will be doing it every time I open a record which will be excessive and slow things down. But for now I just need the correct columns concatenated.
Cheers.