G
Gulf Coast Electric
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
DoCmd.SetWarnings False
If IsNull(DSum("BillAmt", "TTimeBilling", "TimeID = Parent!TimeID")) Then
MsgBox "Enter an amount in the the Percent Column"
Else:
For some reason access does not like this code in the mde, however it works
fine in the mdb ?
It opens a Report is all.
Suggestions???
DoCmd.OpenReport "RTimeBillingSub", acDesign
Reports!RTimeBillingSub.Report.RecordSource = "SELECT
TTimeBilling.BillingID,TTimeBilling.TimeCounter,TTimeBilling.TimeCounterExt,
TTimeBilling.BillDate,TTimeBilling.BillAmt,TTimeBilling.TimeID FROM
TTimeBilling"
DoCmd.Close acReport, "RTimeBillingSub"
DoCmd.OpenReport "InvoiceReport", acPreview, "",
"[TimeID]=[Forms]![TimeCards]![TimeID]"
Reports!InvoiceReport!QuoteInvLabel.Caption = "Invoice"
Reports!InvoiceReport!LaborAndOverhead.Visible = True
Reports!InvoiceReport!RTimeBillingSubA.Visible = True
Reports!InvoiceReport!RTimeBillingSub.Visible = True
End If
DoCmd.SetWarnings True
DoCmd.SetWarnings False
If IsNull(DSum("BillAmt", "TTimeBilling", "TimeID = Parent!TimeID")) Then
MsgBox "Enter an amount in the the Percent Column"
Else:
For some reason access does not like this code in the mde, however it works
fine in the mdb ?
It opens a Report is all.
Suggestions???
DoCmd.OpenReport "RTimeBillingSub", acDesign
Reports!RTimeBillingSub.Report.RecordSource = "SELECT
TTimeBilling.BillingID,TTimeBilling.TimeCounter,TTimeBilling.TimeCounterExt,
TTimeBilling.BillDate,TTimeBilling.BillAmt,TTimeBilling.TimeID FROM
TTimeBilling"
DoCmd.Close acReport, "RTimeBillingSub"
DoCmd.OpenReport "InvoiceReport", acPreview, "",
"[TimeID]=[Forms]![TimeCards]![TimeID]"
Reports!InvoiceReport!QuoteInvLabel.Caption = "Invoice"
Reports!InvoiceReport!LaborAndOverhead.Visible = True
Reports!InvoiceReport!RTimeBillingSubA.Visible = True
Reports!InvoiceReport!RTimeBillingSub.Visible = True
End If
DoCmd.SetWarnings True