M
Mark Gaeth
Greetings,
I have tried for an answer on another forum with no direct answer. I have my
forms that have a connection to an Access db with all the connections
created by the wizard. No problems with the operations of the forms in the
design environment / machine. However, when I deploy the program I will not
have control over the connection string. I have used Application.StartUpPath
for the record source of the Crystal Reports but I want to use the same
style for the connection.string. Can and how is this be done?
Can I insert this function call in the connection string? For example:
The current string:
Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Registry Path=;Jet
OLEDBatabase Locking Mode=0;Data Source="C:\Documents and Settings\Mark
Gaeth\My Documents\Visual Studio Projects\My Model Railroad
Empire\bin\MyRRDBXP.mdb";Jet OLEDB:Engine Type=5;Jet OLEDB:Global Bulk
Transactions=1;Provider="Microsoft.Jet.OLEDB.4.0";Jet OLEDB:System
database=;Jet OLEDB:SFP=False;persist security info=False;Extended
Properties=;Mode=Share Deny None;Jet OLEDB:Create System Database=False;Jet
OLEDBon't Copy Locale on Compact=False;Jet OLEDB:Compact Without Replica
Repair=False;User ID=Admin;Jet OLEDB:Encrypt Database=False
Proposed String:
Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Registry Path=;Jet
OLEDBatabase Locking Mode=0;Data Source=Application.StartUpPath() &
"\MyRRDBXP.mdb";Jet OLEDB:Engine Type=5;Jet OLEDB:Global Bulk
Transactions=1;Provider="Microsoft.Jet.OLEDB.4.0";Jet OLEDB:System
database=;Jet OLEDB:SFP=False;persist security info=False;Extended
Properties=;Mode=Share Deny None;Jet OLEDB:Create System Database=False;Jet
OLEDBon't Copy Locale on Compact=False;Jet OLEDB:Compact Without Replica
Repair=False;User ID=Admin;Jet OLEDB:Encrypt Database=False
I am using VB.Net from VS2003. Thank you for any assistance you can throw my
way.
Mark Gaeth
Decatur, IN
I have tried for an answer on another forum with no direct answer. I have my
forms that have a connection to an Access db with all the connections
created by the wizard. No problems with the operations of the forms in the
design environment / machine. However, when I deploy the program I will not
have control over the connection string. I have used Application.StartUpPath
for the record source of the Crystal Reports but I want to use the same
style for the connection.string. Can and how is this be done?
Can I insert this function call in the connection string? For example:
The current string:
Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Registry Path=;Jet
OLEDBatabase Locking Mode=0;Data Source="C:\Documents and Settings\Mark
Gaeth\My Documents\Visual Studio Projects\My Model Railroad
Empire\bin\MyRRDBXP.mdb";Jet OLEDB:Engine Type=5;Jet OLEDB:Global Bulk
Transactions=1;Provider="Microsoft.Jet.OLEDB.4.0";Jet OLEDB:System
database=;Jet OLEDB:SFP=False;persist security info=False;Extended
Properties=;Mode=Share Deny None;Jet OLEDB:Create System Database=False;Jet
OLEDBon't Copy Locale on Compact=False;Jet OLEDB:Compact Without Replica
Repair=False;User ID=Admin;Jet OLEDB:Encrypt Database=False
Proposed String:
Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Registry Path=;Jet
OLEDBatabase Locking Mode=0;Data Source=Application.StartUpPath() &
"\MyRRDBXP.mdb";Jet OLEDB:Engine Type=5;Jet OLEDB:Global Bulk
Transactions=1;Provider="Microsoft.Jet.OLEDB.4.0";Jet OLEDB:System
database=;Jet OLEDB:SFP=False;persist security info=False;Extended
Properties=;Mode=Share Deny None;Jet OLEDB:Create System Database=False;Jet
OLEDBon't Copy Locale on Compact=False;Jet OLEDB:Compact Without Replica
Repair=False;User ID=Admin;Jet OLEDB:Encrypt Database=False
I am using VB.Net from VS2003. Thank you for any assistance you can throw my
way.
Mark Gaeth
Decatur, IN