Hello, I have five access tables each with the same fields named misc1, misc2, misc3, misc4, misc5. There is a number field in each table named display. If there is a 1 in the display field, I need to display a linked image to a page where the content from the table can be shown. I have done this sort of thing several times but never with 5 tables. Here are the fields in each table.
ID-imglink-title-content-display-showuntil-lastupdat
If a tables display field contains a 1, I need the ID and imglink fields to create the linked image. The showuntil field can be compared after the rs is created to determine if the record should still be shown.
Is there a Join i can use to reduce overhead and still check all 5 tables? I have never joined this many tables before.
I dont know if this helps but I have aliased the important fields here:
Any help would be appreciated.
ID-imglink-title-content-display-showuntil-lastupdat
If a tables display field contains a 1, I need the ID and imglink fields to create the linked image. The showuntil field can be compared after the rs is created to determine if the record should still be shown.
Is there a Join i can use to reduce overhead and still check all 5 tables? I have never joined this many tables before.
I dont know if this helps but I have aliased the important fields here:
Code:
CSql="Select misc1.ID AS ID1, misc2.ID AS ID2, misc3.ID AS ID3, misc4.ID AS ID4, misc5.ID AS ID5,"_
& " misc1.imglink AS Ilink1, misc2.imglink AS Ilink2, misc3.imglink AS Ilink3, misc4.imglink AS Ilink4, misc5.imglink AS Ilink5,"_
& " misc1.showuntil AS SU1, misc2.showuntil AS SU2, misc3.showuntil AS SU3, misc4.showuntil AS SU4, misc5.showuntil AS SU5,"_
& " misc1.display AS Dis1, misc2.display AS Dis2, misc3.display AS Dis3, misc4.display AS Dis4, misc5.display AS Dis5"_
& " From misc1, misc2, misc3, misc4, misc5"
Any help would be appreciated.