I am developing a programme to run off MS ACCESS, and eventually MS ACCESS Runtime, however, I do you a problem. I have created a form with 3 subforms on it. I have populated 2 of these subforms successfully, now I am trying to populate the 3rd subform which is a new form (frm_WeightBrowser) which contains its own subform (3rd level subform called frm_WeightGrid). This subform is a datasheet which I want to populate dynamically. I am trying to populate simply for now, and using the following code:
Expand|Select|Wrap|Line Numbers
- Public Sub LoadRecords(ID As Integer)
- Dim SQL As String
- SQL = "SELECT * FROM [Weight]"
- Me.Form.RecordSource = SQL
- Me.Requery
- End Sub
Expand|Select|Wrap|Line Numbers
- Me.Form.Recordsource = "Weight"
- Me.RecordSource = "Weight"
- Me.RecordSource = SQL