M
mjones
Hi All,
Me again. I know I'm a pain in the neck, but this is a big problem so
hope to bug you all again.
I've made a wonderful invoice - works great with lots of wonderful
features ..... except
The Preview button from the form, only works for the first record.
When I change the form to the next record, I get #ERROR or blank
fields.
The code for the button is:
Private Sub PreviewInvoice_Click()
Call CommandSave_Click
DoCmd.OpenReport "rInv", acViewPreview, , "InvNo=" & Me!InvNo
End Sub
Private Sub CommandSave_Click()
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, ,
acMenuVer70
End Sub
The tInv table has proper InvNo (invoice numbers) in the record's
fields.
The report rInv record source is -
SELECT tInv.PayerID, tClient.ID, tInv.ClientID, tInv.AmountRec,
tInv.InvNo, tInv.InvDate, tInv.InvNote, tInv.ClassCode, tClient.*,
tInv.PaymentMethod, tInv.ClassDates, tInv.Terms, tInv.DueDate,
tInventoryTransactions.ProductCode, tProduct.ProductDescription,
tProduct.UnitPrice, tInventoryTransactions.UnitsSold, tInv.InvDtlNo,
tInv.ReceiptNo, tInv.PrevDepMethod, tInv.PrevDepAmount,
tInventoryTransactions.InvoiceID, tInv.Payment
FROM (tInventoryTransactions INNER JOIN ((tClient INNER JOIN tInv ON
tClient.ID = tInv.PayerID) INNER JOIN tClass ON tInv.ClassCode =
tClass.ClassCode) ON tInventoryTransactions.InvoiceID = tInv.InvNo)
INNER JOIN tProduct ON tInventoryTransactions.ProductCode =
tProduct.ProductCode
WHERE (((tInv.PayerID)=[tClient].[ID]) AND ((tInv.ClientID)=[tClient].
[ID]));
You'd be right by saying, "She doesn't know what she's doing so she's
throwing everything in just in case."
The form fInv record source is SELECT tInv.* FROM tInv;
Any hints where to look would be, as always, greatly appreciated.
Michele
Me again. I know I'm a pain in the neck, but this is a big problem so
hope to bug you all again.
I've made a wonderful invoice - works great with lots of wonderful
features ..... except
The Preview button from the form, only works for the first record.
When I change the form to the next record, I get #ERROR or blank
fields.
The code for the button is:
Private Sub PreviewInvoice_Click()
Call CommandSave_Click
DoCmd.OpenReport "rInv", acViewPreview, , "InvNo=" & Me!InvNo
End Sub
Private Sub CommandSave_Click()
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, ,
acMenuVer70
End Sub
The tInv table has proper InvNo (invoice numbers) in the record's
fields.
The report rInv record source is -
SELECT tInv.PayerID, tClient.ID, tInv.ClientID, tInv.AmountRec,
tInv.InvNo, tInv.InvDate, tInv.InvNote, tInv.ClassCode, tClient.*,
tInv.PaymentMethod, tInv.ClassDates, tInv.Terms, tInv.DueDate,
tInventoryTransactions.ProductCode, tProduct.ProductDescription,
tProduct.UnitPrice, tInventoryTransactions.UnitsSold, tInv.InvDtlNo,
tInv.ReceiptNo, tInv.PrevDepMethod, tInv.PrevDepAmount,
tInventoryTransactions.InvoiceID, tInv.Payment
FROM (tInventoryTransactions INNER JOIN ((tClient INNER JOIN tInv ON
tClient.ID = tInv.PayerID) INNER JOIN tClass ON tInv.ClassCode =
tClass.ClassCode) ON tInventoryTransactions.InvoiceID = tInv.InvNo)
INNER JOIN tProduct ON tInventoryTransactions.ProductCode =
tProduct.ProductCode
WHERE (((tInv.PayerID)=[tClient].[ID]) AND ((tInv.ClientID)=[tClient].
[ID]));
You'd be right by saying, "She doesn't know what she's doing so she's
throwing everything in just in case."
The form fInv record source is SELECT tInv.* FROM tInv;
Any hints where to look would be, as always, greatly appreciated.
Michele