comboy
Instructor
- May 23, 2003
- 226
Hi sorry this is more than likely a very silly question but I have to ask.
The book I have to try and teach myself a bit of VB for databases always sets the connection to the datasource via VB e.g. Dim Data1 as New ADOBC.Recordsource.
But I can just place an ADO connection onto my form and work from that.
Am I missing something is it best practice to set the connection via my code, does it make a difference or do you have to do both i.e. place the control on the form and set the connection via the code?
Thanks in advance for your replies.
Graham
The book I have to try and teach myself a bit of VB for databases always sets the connection to the datasource via VB e.g. Dim Data1 as New ADOBC.Recordsource.
But I can just place an ADO connection onto my form and work from that.
Am I missing something is it best practice to set the connection via my code, does it make a difference or do you have to do both i.e. place the control on the form and set the connection via the code?
Thanks in advance for your replies.
Graham