how can i populate textbox through VBA in MS Access
问题 I have a table RR_info which hold following fields RR_ID, HR_ID, No_of_Beds, Room_Category. Now i want that through VBA code with Form_load event I should populate textboxes for all these table fields. For this I wrote a query which get certain records according to hotel_id as a criteria but code is not working. Private Sub Form_Load() Dim SQL As String Dim db As Database Dim rs As DAO.Recordset SQL = "select * from RR_info where hr_id = " & Forms![hhrrr]![List38] & ";" Set db = CurrentDb Set