Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: mdmarney
  • Content: Threads
  • Order by date
  1. mdmarney

    Type Mismatch Error

    I am sure this is a simple question... I am trying to use the MS code for a autolookup drop down on a tect box and button. I am using the following code: Private Sub Command67_Click() Dim rs As Object Set rs = Me.Recordset.Clone rs.FindFirst "[Last_Name] = " &...
  2. mdmarney

    If statement not working

    The following code always comes out TRUE. If Me!Parish_Group_Arrival.Value Then DoCmd.RunSQL "UPDATE tbl_attendants SET Arrival_Verification = TRUE WHERE Parish_Group_Arrival = TRUE AND Parish_Group_ID =...
  3. mdmarney

    Urgent! Object reference problem?

    I know I have posted this before, but am having trouble getting a good answer. Here is the current code: It works great in a form, but not in a report. Dim rs As Object Set rs = CurrentDb.OpenRecordset("Select * from tbl_Attendants Where Tee_Shirt_Size = 'L'") rs.MoveLast...
  4. mdmarney

    Object reference in a Report

    I know I have posted this before, but am having trouble getting a good answer. Here is the current code: It works great in a form, but not in a report. Dim rs As Object Set rs = CurrentDb.OpenRecordset("Select * from tbl_Attendants Where Tee_Shirt_Size = 'L'") rs.MoveLast...
  5. mdmarney

    Report help - Cannot ref. Object

    Here is the current code: It works great in a form, but not in a report. Dim rs As Object Set rs = CurrentDb.OpenRecordset("Select * from tbl_Attendants Where Tee_Shirt_Size = 'L'") rs.MoveLast Me.tx_L_Count = rs.RecordCount **The error is on the assignment to the text box...
  6. mdmarney

    rs.MoveLast Error

    The following code gives a "No Current Record" error on the MoveLast function. We have tried messing around with the SQL string. It functions well in separate parts, but not as one string. Any thoughts? strSQL = "Select * from tbl_Attendants Where Parish_Group_ID = " &...
  7. mdmarney

    Sorry for all the posts, but time i

    Sorry for all the posts, but time is running out! Related Code: Set rs2 = CurrentDb.OpenRecordset("Select * from tbl_Attendants Where Arrival_Verification = TRUE AND Parish_Group_ID = " &...
  8. mdmarney

    How do I reference an object in a form?

    I'm trying to make the following assignment. tx_L_Count = rs.RecordCount I have tried. Me.tx_L_Count = rs.RecordCount and Reports!rpt_Shirt_Distribution_by_Diocese_and_Group.tx_L_Count = rs.RecordCount and neither works. Help? Thank you! ************* M. MARNEY www.tgw.com
  9. mdmarney

    Combo box with report below?

    I need a combo box that people can select a group of reports from. I no not want to create a report for each group and then a combo linked to them. I would like the combo to automatically generate the printable report based on the selection in the box. How do I do this? ************* M...
  10. mdmarney

    Count in page header?

    I have between 1 and three groups to a page on a given report. I would like the header to display a total count from each grouped section. Is this a VB problem or is there a simple expression? ************* M. MARNEY www.tgw.com
  11. mdmarney

    Syntax Error in RunSQL

    Hi. Having trouble with the following command: DoCmd.RunSQL "UPDATE tbl_attendants SET Arrival_Verification = '" &Yes& "' WHERE Me.Parish_Group_Arrival = '"&Yes&"'" Receiving syntax error. Help... ************* M. MARNEY www.tgw.com
  12. mdmarney

    Syntax error in RunSQL

    Hi. Having trouble with the following command: DoCmd.RunSQL "UPDATE tbl_attendants SET Arrival_Verification = '" &Yes& "' WHERE Me.Parish_Group_Arrival = '"&Yes&"'" Receiving syntax error. Help... ************* M. MARNEY www.tgw.com
  13. mdmarney

    Combo box to change values in another table

    Hi. I am having difficulty with figuring out how to do the following: I have a bound combo box (or say a check box for that matter) in a form. When I change the value of this firld in the form, I need a corresponding field in the subform to update to the same value as what was set in the form...
  14. mdmarney

    Two Different Recordsets on One Event

    is it possible to define two record sets on one event For instance, I have: Set rs = CurrentDb.OpenRecordset... And need another to do another operation on. ************* M. MARNEY www.tgw.com
  15. mdmarney

    SQL Problem in Form

    The follwing SQL is giving error: Set rs = CurrentDb.OpenRecordset("SELECT * FROM tbl_Attendants WHERE Parish_Group_ID = Me![Parish_Group_ID]") Error: Too few parameters. Expected 1. I can run the SQL statement alone and it works fine. Any thoughts? ************* M. MARNEY www.tgw.com
  16. mdmarney

    SQL Statement Problem in form

    The folowing code is erroring out. Any suggestions... Private Sub Form_Current() Set rs = CurrentDb.OpenRecordset("Select * from tbl_Attendants where Parish or Group ID = " & me!Parish or Group ID & ") rs.MoveLast Me.tx_Count_Box_2 = rs.RecordCount End Sub ************* M...
  17. mdmarney

    SQL Statement Problem in form

    Private Sub Form_Current() Set rs = CurrentDb.OpenRecordset("Select * from tbl_Attendants where Parish or Group ID = " & me!Parish or Group ID & ") rs.MoveLast Me.tx_Count_Box_2 = rs.RecordCount End Sub ************* M. MARNEY www.tgw.com
  18. mdmarney

    Add and Data Entry Control will not work on Subform!

    I would like for users to only be able to add new records on a subform. If I set the DataEntry or Additions controls it doesn't change anything. I'm guessing because the main form is set differently. Is there a work around?
  19. mdmarney

    Subform properties problem

    I would like my Main form to be editable and NO data entry and my subform to be data entry only with no editing. The problem is, when I set the two form this way the subform does not act like it should. Do the main form properties supercede those of the subform?
  20. mdmarney

    Adding a Count to any form...

    How can I add a count of a total number of records to a form? I would like to know users inputting data to know how many total entries have been made.

Part and Inventory Search

Back
Top