silentwolf
Active member
- Local time
- Yesterday, 22:28
- Joined
- Jun 12, 2009
- Messages
- 545
Hi again,
I have currently a main form that is displaying all Contact Records.
On that form I have a option Group that where I select if the contact is Private or a Company.
At present I drigger the textfields with following Code
That works ok.. but as the Company Contact has much less fields in relation to Salution or Title I was wondering what is the best approach to display either Company related Fields and Private Related Fields.. so there are not to many empty spaces in the Contact Form.
Cheers
I have currently a main form that is displaying all Contact Records.
On that form I have a option Group that where I select if the contact is Private or a Company.
At present I drigger the textfields with following Code
Code:
Private Sub fraCompanyPrivate_Click()
Select Case fraCompanyPrivate.value
Case 1
' Me!txtDisplayName.BackColor = fdBlue
Me!txtFirstName.Visible = False
Me!txtLastName.Visible = False
Me!cboTitle.Visible = False
Me!cboAnrede.Visible = False
Me!txtUID.Visible = True
Me!txtDisplayName.Visible = False
Me!txtContactPerson.Visible = True
Case 2
Me!txtDisplayName.Visible = True
Me!txtFirstName.Visible = True
Me!txtLastName.Visible = True
Me!cboTitle.Visible = True
Me!cboAnrede.Visible = True
Me!txtUID.Visible = False
Me!txtContactPerson.Visible = False
Case Else
End Select
End Sub
That works ok.. but as the Company Contact has much less fields in relation to Salution or Title I was wondering what is the best approach to display either Company related Fields and Private Related Fields.. so there are not to many empty spaces in the Contact Form.
Cheers