Hi folks,
Basically, i'm writting an app that pulls info from and AccesDB file and then fills in information in a form.
Where i'm lost is that my form is to be in another form.
I have my main form, frmMain.vb, that is my start-up form. When i pick a date from a datePicker, if queries the AccessDB and gives me the results in a DataSet.
I have a second form called frmReportDetails.vb which had textboxes that gets populated with the details of another query to the DB
In my frmMain, i have a TableLayoutPanel. What i want to do is for every record returned by my second query, i want to add a copy of myfrmReportDetails.vb (which'll contain the query info) in my TableLayoutPanel but i can't get it to work.
When the code excutes, it seems to run ok although i don't get a copy of my myfrmReportDetails.vb to show up in my TableLayoutPanel.
Dim frmRptDetails = New frmReportDetails()
For i = 0 To qResult.Rows.Count - 1
frmRptDetails.txtAppName.Text = qResult.Rows(i).Item("AppName")
'... other properties assigned...
tlpreportDetails.Controls.Add(frmRptDetails)
Next
Thanks alot for the help!