Tab Controls - Two Forms (1 Viewer)

mateogp

Registered User.
Local time
Today, 08:02
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
 

maxmangion

AWF VIP
Local time
Today, 14:02
Joined
Feb 26, 2003
Messages
2,805
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

Top Bottom