C
CAD Fiend
Hello,
Q #1
For some reason, I am getting confused about the difference between
Input Mask and Format. Can anyone tell me the differnce between the two
and when/when not to use them?
Q #2
Also, I have a combo box (cmbFirstName) that writes to a table
(tblFirstName) and I'd like to have it so that the if user forgets to
type the first letter as a capital letter, it (cmbFirstName) will do it
for them. I tried to use this below (which I found on one of John
Vinson's replies from last week) and it worked fine in the form, but
when I looked in the table to check if it passed it correctly, the entry
was still ALL lowercase. What do I need or what am I missing?
Private Sub cmbFirstName_AfterUpdate()
' Only convert fields that are not already mixed case
' This will leave correct but not "proper" names such as
' MacDonald, van der Steen, and de Vargas undamaged
If StrComp(Me!cmbFirstName, LCase(Me!cmbFirstName), 0) = 0 Then
Me!cmbFirstName= StrConv(Me!cmbFirstName, vbProperCase)
End If
End Sub
TIA.
Phil.
Q #1
For some reason, I am getting confused about the difference between
Input Mask and Format. Can anyone tell me the differnce between the two
and when/when not to use them?
Q #2
Also, I have a combo box (cmbFirstName) that writes to a table
(tblFirstName) and I'd like to have it so that the if user forgets to
type the first letter as a capital letter, it (cmbFirstName) will do it
for them. I tried to use this below (which I found on one of John
Vinson's replies from last week) and it worked fine in the form, but
when I looked in the table to check if it passed it correctly, the entry
was still ALL lowercase. What do I need or what am I missing?
Private Sub cmbFirstName_AfterUpdate()
' Only convert fields that are not already mixed case
' This will leave correct but not "proper" names such as
' MacDonald, van der Steen, and de Vargas undamaged
If StrComp(Me!cmbFirstName, LCase(Me!cmbFirstName), 0) = 0 Then
Me!cmbFirstName= StrConv(Me!cmbFirstName, vbProperCase)
End If
End Sub
TIA.
Phil.