adamh1
11-30-2011, 06:07 PM
Hi all!
Here is a tough one:
Problem: Data Sheet fields do not update correctly with specific at_view (at_instr).
The basic lookup is: Lots of stuff from ‘instr’ and data from tag_reg
Instr joined on instr.equipment to tag_reg.tag_no. This tag_reg will give me the description of the tag in instr.equipment. (this being my related equipment)
Data sheet would have:
Tag_No---------Tag_descrip--------Rel_equip_tag-------Rel_equip_descrip.
All this works well if the AT_instr view contains only one instance of the instr table. If I add to the at_instr view another instr table (ex join instr.iinput to instr_a.keytag) my previous lookup stops working for the join on my tag_reg. The above “Rel_equip_descrip” is not looked-up correctly the other three data is OK
If I remove the join for the instr_a all is back to normal.
If I add an additional tag_reg (instr with two tag_reg) it works OK
Two instr and two tag_reg does not work
Three instrument and tag_reg does not work
(does not work = rel_equip_descript is looked up wrong)
If debugmode is ON, there are no errors displayed.
The sql string from the rebisview table (at_instr) if ran separately (in a query in project.mdb)gives no errors and yields the expected view.
Database is central (multi-project) SQL SS3
Any idea would be appreciated.
Adam
Here is a tough one:
Problem: Data Sheet fields do not update correctly with specific at_view (at_instr).
The basic lookup is: Lots of stuff from ‘instr’ and data from tag_reg
Instr joined on instr.equipment to tag_reg.tag_no. This tag_reg will give me the description of the tag in instr.equipment. (this being my related equipment)
Data sheet would have:
Tag_No---------Tag_descrip--------Rel_equip_tag-------Rel_equip_descrip.
All this works well if the AT_instr view contains only one instance of the instr table. If I add to the at_instr view another instr table (ex join instr.iinput to instr_a.keytag) my previous lookup stops working for the join on my tag_reg. The above “Rel_equip_descrip” is not looked-up correctly the other three data is OK
If I remove the join for the instr_a all is back to normal.
If I add an additional tag_reg (instr with two tag_reg) it works OK
Two instr and two tag_reg does not work
Three instrument and tag_reg does not work
(does not work = rel_equip_descript is looked up wrong)
If debugmode is ON, there are no errors displayed.
The sql string from the rebisview table (at_instr) if ran separately (in a query in project.mdb)gives no errors and yields the expected view.
Database is central (multi-project) SQL SS3
Any idea would be appreciated.
Adam