Hai everybody,
I hope one of you can help me.
I'm trying to put a single column and single row result of an query into a textbox or string variable.
I used the code below but getting error messages and can't get it to work, Please help me..
In this Code T_VERSIE is a textbox.
I made it into a macro to test it, but I wil use it in a form. It's probely an easy problem but I need some help.
Harm
I hope one of you can help me.
I'm trying to put a single column and single row result of an query into a textbox or string variable.
I used the code below but getting error messages and can't get it to work, Please help me..
Code:
Sub test()
Dim frst As DAO.Recordset
Dim sqlstring As String
sqlstring = "select vv.date as test from vee vv"
frst.OpenRecordset sqlstring
T_VERSIE.SetFocus
T_VERSIE.Value = frst
End Sub
I made it into a macro to test it, but I wil use it in a form. It's probely an easy problem but I need some help.
Harm