OK.
I tried putting the new connection in the Form Load event
but I still seem to not know how to properly write the
string with the Curdir() function embedded with in.
Still a novice at this programming stuff.
Here is what I tried and the resulting error...
Private Sub Form1_Load(ByVa l sender As Object, ByVal e
As System.EventArg s) Handles MyBase.Load
'OleDbConnectio n1
'
Me.OleDbConnect ion1.Connection String = "Jet
OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Registry
Path=;Jet OLEDB:Database L" & _
"ocking Mode=1;Jet OLEDB:Database Password=;Data
Source=" + CurDir() + "\godanddeaf.md b"";" & _
"Password=; Jet OLEDB:Engine Type=5;Jet
OLEDB:Global Bulk Transactions=1; Provider=" & _
"""Microsoft.Je t.OLEDB.4.0"";J et OLEDB:System
database=;Jet OLEDB:SFP=False ;Extende" & _
"d Properties=;Mod e=Share Deny None;Jet OLEDB:New
Database Password=;Jet OLEDB:Cr" & _
"eate System Database=False; Jet OLEDB:Don't Copy
Locale on Compact=False;J et OLED" & _
"B:Compact Without Replica Repair=False;Us er
ID=Admin;Jet OLEDB:Encrypt Database=" & _
"False"
Error -
Additional information: Format of the initialization
string does not conform to specification starting at
index 263.
-----Original Message-----
Hi Bob,
You can create a new connection in your form load event,
that works, I havea long time searched for that however it is really that
simple.
I hope this helps, if it is not clear be free to ask
again?
Cor
.