Page 2 of 2 FirstFirst 12
Results 16 to 24 of 24
  1. #16
    tdanko128 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2011
    Posts
    24

    Sorry... I'm not sure what db post means.

    Quote Originally Posted by pbaldy View Post
    I'm not sure what you mean by "the database would still work". You're saying this code doesn't work, are you not? It is sometimes easier to figure out why something isn't working when you can play with it yourself.
    Hey if you wanna still help me with it still it would be greatly appreciated. I can email you a blank copy with fake records. I cannot send customer info out though. I can't upload here because it exceeds the file sizes.

  2. #17
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,529
    You can email it to

    removed for privacy
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #18
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,529
    Two issues. The sample you sent does not contain the code that errors, so I'm not sure how I'm supposed to fix the problem. Second, even if I try to create that functionality, there is only one record, so impossible to test whether the code works or not.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #19
    tdanko128 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2011
    Posts
    24
    Sorry... I sent you the wrong copy... I Will resend it... Command 40 on the contracts form is where the issue is occuring

  5. #20
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,529
    Sorry, that was a serious brain cramp on my part. You want to refer to the control containing contract ID, not the button. You also need to bracket the field name, due to the inadvisable space:

    DoCmd.OpenReport "contract by all", acViewPreview, , "[Contract ID] = " & Me.Contract_ID
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  6. #21
    tdanko128 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2011
    Posts
    24
    Dude... Pbaldy you are my savior...

  7. #22
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,529
    Glad we finally got it sorted out. Sorry I didn't notice the fact that you were referring to the button instead of the contract ID. An unfortunately not-so-rare "duh" moment of mine.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  8. #23
    tdanko128 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2011
    Posts
    24
    Hey I really appreciate all that you did to help with this. So I have to ask since have a copy of it. Is that a decent database for a first access project?

  9. #24
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,529
    I don't want to not answer, but the truth is I can't remember (getting senile). The db is on my laptop at home, and I don't have 2007 on this machine to look at it. I don't recall anything jumping out at me, but I really just looked at the form and report related to this issue. Spaces in object names aren't worth the trouble in the long run. I seem to remember a lot of repetitively named objects, which I assume means you're creating new objects instead of using a parameter query. In other words, if you had queries for January sales, February sales, etc, you could have a single query with date parameters so the user could simply select their desired time frame.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 12-08-2010, 01:32 PM
  2. Button to open a Report
    By 95DSM in forum Reports
    Replies: 1
    Last Post: 07-09-2010, 11:11 AM
  3. Send Primary Key from a Form To A Report
    By nkuebelbeck in forum Forms
    Replies: 1
    Last Post: 03-18-2010, 12:24 PM
  4. Error in Print Report Button
    By Robert M in forum Reports
    Replies: 16
    Last Post: 09-23-2009, 03:08 PM
  5. Replies: 1
    Last Post: 04-06-2009, 12:05 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums