GaryWilsonCPA
Technical User
I have used a combo box on a form generated by the dataform wizard. It will draw the data from the table configured with the form.
I want to draw data from a different table that I added to the form. I added a oleadapter and a dataset. The combo box doesnt fill up with data.
This is the code I am trying....
Public Sub filldataset(ByVal dataset As DublinFundRaisingProject.DatasetContacts)
Me.OleDbConnection1.Open()
dataset.EnforceConstraints = False
Try
Me.DSContacts.Fill(dataset)
Catch fillexception As System.Exception
Throw fillexception
Finally
dataset.EnforceConstraints = True
Me.OleDbConnection1.Close()
End Try
My combo box doesnt populate when i run the code..Doesanyone have ideas?
I want to draw data from a different table that I added to the form. I added a oleadapter and a dataset. The combo box doesnt fill up with data.
This is the code I am trying....
Public Sub filldataset(ByVal dataset As DublinFundRaisingProject.DatasetContacts)
Me.OleDbConnection1.Open()
dataset.EnforceConstraints = False
Try
Me.DSContacts.Fill(dataset)
Catch fillexception As System.Exception
Throw fillexception
Finally
dataset.EnforceConstraints = True
Me.OleDbConnection1.Close()
End Try
My combo box doesnt populate when i run the code..Doesanyone have ideas?