Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Gaining Control SSTab1 click event in AR1300

Status
Not open for further replies.

VijayABS

ISP
Mar 19, 2009
5
AU
I need to be able to access the click event of SSTab1 in the AR1300 form. The reason I
want to do so is to show a button in one of the tabs and hide it in the other tabs.

My idea is to to this via the SStab's click event.

Perhaps this code would give an Idea of what I am trying to achieve.
Currently I get a "Type Mismatch" error for the code below at the .GetControl line.


Public WithEvents CustDS As AccpacAR1300.ACCPACDSControl
'Public WithEvents CustCntrl As AccpacAR1300.ACCPACAR1300UICtrl
Public WithEvents CustCntrl As SSTab


Private Sub ACCPACAR1300UICtrl1_OnUIAppOpened()

Set CustCntrl = Me.ACCPACAR1300UICtrl1.UIAppControls.Item("SStab1").GetControl



End Sub

Private Sub CustCntrl_Click(PreviousTab as Integer)
If CustCntrl.Tab <> 1 Then
Command2.Hide = True
End if
End Sub
 
Ettiene,,
I actually found the answer here,,,,
If you want, I can post the code I used....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top