G
Guest
Hello:
I have been trying to create a form that gets data from the user and then
according to that data if the left four numbers in the field Keystartpull are
a certain number then the keystart2pull is a certain 2 digit abreviation.
Well I have been trying to get this to work but everytime I type the name of
a field it changes it case and my program does not work.
My small program is below.
Private Sub Keystartpull_BeforeUpdate(Cancel As Integer)
Dim kstart1Pull
If Left(Keystartpull, 4) = "0246" Then
kstart1Pull = "KI"
End If
Kstart2Pull = kstart1Pull
but as you can see the keystart1Pull is not written the way it is on the
table. The way it is supposed to be written is keystart1pull (all
lowercase), Kstart2Pull is suppsed to be kstart2pull (all lowercase) what is
going on? When I browse for the objects related to my form, I only see the
objects as spelled incorrectly, not like the way they are spelled out in my
form or my table.
Thanks
I have been trying to create a form that gets data from the user and then
according to that data if the left four numbers in the field Keystartpull are
a certain number then the keystart2pull is a certain 2 digit abreviation.
Well I have been trying to get this to work but everytime I type the name of
a field it changes it case and my program does not work.
My small program is below.
Private Sub Keystartpull_BeforeUpdate(Cancel As Integer)
Dim kstart1Pull
If Left(Keystartpull, 4) = "0246" Then
kstart1Pull = "KI"
End If
Kstart2Pull = kstart1Pull
but as you can see the keystart1Pull is not written the way it is on the
table. The way it is supposed to be written is keystart1pull (all
lowercase), Kstart2Pull is suppsed to be kstart2pull (all lowercase) what is
going on? When I browse for the objects related to my form, I only see the
objects as spelled incorrectly, not like the way they are spelled out in my
form or my table.
Thanks