penfold1992
Registered User.
- Local time
- Today, 14:47
- Joined
- Nov 22, 2012
- Messages
- 169
I have combo box that searches records.
When that record gets picked, I want to fill in some other boxes corresponding to the record... I have a method to get the data but I want to know if there is an easier way.
in the afterupdate field:
im sure there is a better way than this?
When that record gets picked, I want to fill in some other boxes corresponding to the record... I have a method to get the data but I want to know if there is an easier way.
in the afterupdate field:
Code:
Dim dbs As DAO.Database
Dim rstReq As DAO.Recordset
Dim strSQL As String
Dim str As String
strSQL = "SELECT * FROM [tbl] WHERE [tbl].[Model]=" & Me.searchcmb
Set rstReq = dbs.OpenRecordset(strSQL)
If Not IsNull(rstReq![Date received]) Then
Date1 = rstReq![Date received]
strDateRec = Date1
Else
strDateRec = ""
End If
im sure there is a better way than this?