A
Adrienne
I 'm trying to establish a VBA event prodcedure on my form
that fills in other fields automatically. I have 150
different Account numbers and after each account number I
have a research field and division field a pool field and
a notes field that should be automatically updated once
the event reads the account number. Someone gave me an
event procedure that fills in other fields automatically
for zip codes and it looks something like this:
Private Sub ZipCode_AfterUpDate
If ZipCode is entered fill in city and state automatically.
Select Case Zip Code
Case "10000" to "10200"
City = "New York"
State = "NY"
End Select
End Sub
My information looks like this:
ACC#:0789 Research:LAB1 DeptCAE Pool:RSUMS Notes:R&D
If Account Number is entered fill in Research,Dept,Pool
and Notes.
Case "0789"
Research = "LAB1"
Dept = "DCAE"
Pool = "RSUMS"
Notes = "R&D"
End Select
End Sub
Should I establish a new text box and open the VBA window
to make this happen?? I'm not sure. I need help?
that fills in other fields automatically. I have 150
different Account numbers and after each account number I
have a research field and division field a pool field and
a notes field that should be automatically updated once
the event reads the account number. Someone gave me an
event procedure that fills in other fields automatically
for zip codes and it looks something like this:
Private Sub ZipCode_AfterUpDate
If ZipCode is entered fill in city and state automatically.
Select Case Zip Code
Case "10000" to "10200"
City = "New York"
State = "NY"
End Select
End Sub
My information looks like this:
ACC#:0789 Research:LAB1 DeptCAE Pool:RSUMS Notes:R&D
If Account Number is entered fill in Research,Dept,Pool
and Notes.
Case "0789"
Research = "LAB1"
Dept = "DCAE"
Pool = "RSUMS"
Notes = "R&D"
End Select
End Sub
Should I establish a new text box and open the VBA window
to make this happen?? I'm not sure. I need help?