lookforsmt
Registered User.
- Local time
- Today, 11:34
- Joined
- Dec 26, 2011
- Messages
- 672
HI! all
i am trying to use the below select statement to auto-fill the data if it meets the criteria.
User will select SOLid from combobox dropdown and IDSRef field will get auto-filled from unbound fields (txtPQR....etc)
Below is my statement
thankyou
i am trying to use the below select statement to auto-fill the data if it meets the criteria.
User will select SOLid from combobox dropdown and IDSRef field will get auto-filled from unbound fields (txtPQR....etc)
Below is my statement
Code:
Private Sub SOLid_AfterUpdate()
Select Case Me![SOLid]
Case 1
Me.SOLid = "4101"
Me.IDSRef = Me!Parent.txtPQR
Case 2
Me.SOLid = "1213"
Me.IDSRef = Me!Parent.txtABC
Case 3
Me.SOLid = "1215"
Me.IDSRef = Me!Parent.txtMAN
Case 4
Me.SOLid = "2512"
Me.IDSRef = Me!Parent.txtXYZ
End Select
End Sub
thankyou