Wallegator
Programmer
Report works fine on my local machine. Error appears when installed on clients machine: Server has not yet been opened. How do I correct it? Here is my code:
If frmMainMenu.MyLocal = 1 Then
Set report = crxApplication.OpenReport("c:\databases\visual basic\EstimatingTracking\InBidProcess.rpt"
report.Database.Tables(1).SetLogOnInfo "D9M7GG21", "EstTrackDev", "sa"
Else
Set report = crxApplication.OpenReport("p:\joepre\estdev\InBidProcess.rpt"
report.Database.Tables(1).SetLogOnInfo "devp_sql1", "EstTrackDev", "User", "Password"
End If
report.RecordSelectionFormula = "{ado.BusinessUnit} = 'RGG' And {ado.Status}='Bidding'"
report.ParameterFields(1).AddCurrentValue ("R. G. GRIFFITH'S ESTIMATES"
If frmMainMenu.MyLocal = 1 Then
Set report = crxApplication.OpenReport("c:\databases\visual basic\EstimatingTracking\InBidProcess.rpt"
report.Database.Tables(1).SetLogOnInfo "D9M7GG21", "EstTrackDev", "sa"
Else
Set report = crxApplication.OpenReport("p:\joepre\estdev\InBidProcess.rpt"
report.Database.Tables(1).SetLogOnInfo "devp_sql1", "EstTrackDev", "User", "Password"
End If
report.RecordSelectionFormula = "{ado.BusinessUnit} = 'RGG' And {ado.Status}='Bidding'"
report.ParameterFields(1).AddCurrentValue ("R. G. GRIFFITH'S ESTIMATES"