Linq:
I probably need to give you more information...sorry:
1) My Form named "Customer Report" is quite complex and generates calculated
fields from several tables. It is all done in VBA. The search information
(including the Customer Name) is from ComboBoxes.
2) I would like to ADD a feature that will allow the user to set all of the
"Search Information" EXCEPT the Customer. I have placed a PrintALLCustomers
button on the form. When this button is pressed I have another "Private Sub
PrintAllCustomers_Click()" that contains the necessary code to do all of the
calculations, this time starting at the FIRST CUSTOMER.
3) When all of this code is executed I would like to immediatly start
printing and then I will INDEX to the next record and start over. I would
like this to be totally automatic with NO prompts to the user and no
additional BUTTON PRESSING.
I have seen a function called: "RunCommand (acCmdPrint)" which almost works
but it requires the user to CLICK OK on the Printer Prompt. It would be
better if there was no User Prompting from Windows, otherwise the user will
have to stay there to keep pressing the PRINT button.
Problems:
1) When I investigated the Report Wizard it did not list my report, instead,
it just listed the Tables in my Database. To use the report wizard I would
have to generate another table from my Form, this looks like a lot of
unnessary work when it is easy to just print the Form even though the Gnomes
would not like it.
2) An answer to this next question would be very useful: I am using
Recordsets in the VBA. After I have executed:
Set rs = New ADODB.Recordset
StrOne = "SELECT * FROM Delivery_Data " & "WHERE ID=" & Record_Number
rs.Open StrOne, CurrentProject.Connection, adOpenForwardOnly,
adLockReadOnly
(where, Record_Number=1 so I can get the first record)
I would like to know the TOTAL number of records in the file Delivery_Data.
All attempts to use Count(), DCount or Count(*) have failed. Can you please
tell me the correct syntax to use.
I really appreciate all you help Linq...thank you.