G
Gina Whipp
All,
I have searched, played with the code and still have no solution so I am
hoping someone has an answer. (Yep, I searched the newsgroups and still no
joy!) Here's my problem/issue.
I have a pop-up that opens from a form that has several tab pages. What I
want to happen is I open the main form, select a Client from the list box.
I then go to the Hardware Installed tab and select a machine. At that point
I double-click on the machine and opens a pop-up to show me all the
contracts that that particular machine has has. I now ant to double-click
within the pop-up and have it go the tab Hardware Contracts and display that
contract. (And just to make things more interesting, if I select another
contract I want the Hardware Contracts to switch to that contract.)
I have successfully done this before but never with a tab control involved
and for that reason the lines I would normally use are not working. Below
is some of what I have tried...
Forms![frmContracts]![sfrHardwareContracts].SetFocus
***I guess you can't change LinkFields on the fly***
'Forms![frmContracts]![sfrHardwareContracts].LinkChildFields =
Me![txtHardwareContractsID]
'Forms![frmContracts]![sfrHardwareContracts].LinkMasterFields =
Me![txtHardwareContractsID]
Forms![frmContracts]![sfrHardwareContracts].Filter =
Me![txtHardwareContractsID]
'Forms![frmContracts]![sfrHardwareContracts].Form![txtHardwareContractsID].SetFocus
'Forms![frmContracts]![sfrHardwareContracts].Form![txtHardwareContractsID]
= Me![txtHardwareContractsID]
***This doesn't work because I can't seem to switch the focus to the
subform though it does go to the tab page***
'DoCmd.FindRecord FindThis, , True, acSearchAll, True
'Forms![frmContracts]![sfrHardwareContracts].Form![txtHardwareContractsID].Requery
Any and all ideas would be appreciated!!!!
BIG Thanks!
Gina Whipp
"I feel I have been denied critical, need to know, information!" - Tremors
II
I have searched, played with the code and still have no solution so I am
hoping someone has an answer. (Yep, I searched the newsgroups and still no
joy!) Here's my problem/issue.
I have a pop-up that opens from a form that has several tab pages. What I
want to happen is I open the main form, select a Client from the list box.
I then go to the Hardware Installed tab and select a machine. At that point
I double-click on the machine and opens a pop-up to show me all the
contracts that that particular machine has has. I now ant to double-click
within the pop-up and have it go the tab Hardware Contracts and display that
contract. (And just to make things more interesting, if I select another
contract I want the Hardware Contracts to switch to that contract.)
I have successfully done this before but never with a tab control involved
and for that reason the lines I would normally use are not working. Below
is some of what I have tried...
Forms![frmContracts]![sfrHardwareContracts].SetFocus
***I guess you can't change LinkFields on the fly***
'Forms![frmContracts]![sfrHardwareContracts].LinkChildFields =
Me![txtHardwareContractsID]
'Forms![frmContracts]![sfrHardwareContracts].LinkMasterFields =
Me![txtHardwareContractsID]
Forms![frmContracts]![sfrHardwareContracts].Filter =
Me![txtHardwareContractsID]
'Forms![frmContracts]![sfrHardwareContracts].Form![txtHardwareContractsID].SetFocus
'Forms![frmContracts]![sfrHardwareContracts].Form![txtHardwareContractsID]
= Me![txtHardwareContractsID]
***This doesn't work because I can't seem to switch the focus to the
subform though it does go to the tab page***
'DoCmd.FindRecord FindThis, , True, acSearchAll, True
'Forms![frmContracts]![sfrHardwareContracts].Form![txtHardwareContractsID].Requery
Any and all ideas would be appreciated!!!!
BIG Thanks!
Gina Whipp
"I feel I have been denied critical, need to know, information!" - Tremors
II