Tab Controls - Two Forms

mateogp

Registered User.
Local time
Today, 09:28
Joined
Aug 11, 2004
Messages
43
Hello,

I want to use a tab form where the user can click add, search, and edit records all from 3 tabs. The problem is I only want to be able to add data on one form, edit data on another, and just read only on the search. This seems to cause a dilemma, how can I specifiy them to add, edit, and read only on one form using tabs?

Mateo
 
each page on your tab has a page index, so you can try something as follows.

on the onCurrent event of your form

Code:
If PageIndex = 0 Then
Me.ButtonName.Enabled = False
Me.ButtonName2.Enabled = False
Me.ButtonName3.Enabled = True
End If

Similarly you can do that for your other pages ... alternatively you can also use a case statement.
 

Users who are viewing this thread

Back
Top Bottom