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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by jpstroud

  1. jpstroud

    Fix for Procedure Declaration Does Not Match Description of Event...?

    I've never had a problem with modifying the events. As long as you know what syntax Access uses to name the events, it's fine. The only problem that comes up is knowing what parameters, if any, it asks for (which I had forgotten to remove in my case). If it turns out that things aren't working...
  2. jpstroud

    Fix for Procedure Declaration Does Not Match Description of Event...?

    I came across a problem this morning where my DB code would display the error: "The expression On Load you entered as the event property setting produced the following error: Procedure declartion does not match description of event or procedure having the same name." as described in post...
  3. jpstroud

    0x000005aa Insufficient Resources

    I'm attempting to help a friend with their computer and I'm at a loss as to the cause of the problem as I've never seen this before in Windows XP. Whenever we attempt to install drivers, software, (almost) anything, we get program hangs and end up having to quit the program. This is primarily...
  4. jpstroud

    Combine live data from two tables

    Sorry, I went into the locations in the next sentance. We have categories that libraries are filed under, and in the majority of the cases we've filed folks under one category only. I'd like to be able to have them listed twice when the information is queried. The person who is in charge of...
  5. jpstroud

    Combine live data from two tables

    Actually, the header is a bit misleading. I need to duplicate specific data from the same table, while changing only specific data. Let me explain. I have a directory database that I maintain (note, I can NOT change the database structure - just the data) on a SQL server. I have made an access...
  6. jpstroud

    Automatically incrementing order number

    Let me know how it turns out for you. It worked fine on my machine, but I have v2002. Not sure what you're running.
  7. jpstroud

    Automatically incrementing order number

    Sorry, place it on the Form_Current event for your form. If you just drop it into the form's VBA module itself, I've already included the Private Sub.... lines. Just make sure the On Current property is set to [Event Procedure]. The code will check the current form whenever the form has the...
  8. jpstroud

    Automatically incrementing order number

    Try this on for size, adjusting fields for what you need of course: Private Sub Form_Current() Dim MaxOrderNo As Integer, NextOrderNo As String, rs As DAO.Recordset, db As DAO.Database Set db = CurrentDb 'initializes values Set rs = db.OpenRecordset("SELECT...
  9. jpstroud

    Automatically incrementing order number

    It would have to be a text field in that case. To increment the number, you would need to write some code. What is the table name and the field for the Order number? I'll post some sample code here for you.
  10. jpstroud

    Automatically incrementing order number

    It would save as the number itself, ie.. 1234, 1235, but would display with the leading O. Also, if you have less than 4 digits, it will substitute zeros for the missing digits (ie, O0023, O0024). Again, this is in the display only. This has the added advantage of not taking up as much space...
  11. jpstroud

    Automatically incrementing order number

    Forgot to say, use the code I posted above (without the comment) in the data property of a text box to get the desired result. Not sure how familiar you are with access, so I just wanted to drop that piece out there :-)
  12. jpstroud

    Automatically incrementing order number

    If it's just for display purposes, you can make the field an autonumber field. On forms and reports, instead of using the field itself use: =Format([fieldname],"\O0000") 'first character after slash is the letter O The autonumber field will increment with each new record, and the data will...
  13. jpstroud

    Referencing a field caption via VBA

    I've normalized as much as I'm able given the constraints. The issue itself is merely a matter of attempting to concantinate stings together. What would you suggest that would help me accomplish this?
  14. jpstroud

    Referencing a field caption via VBA

    The data that I have has certain options. I've normalized everything as much as I can while still staying in the guidelines that have been set forth. Since I'm not the end user on this, I have to stick with what they will be able to understand and utilize. The form that sets the data requires...
  15. jpstroud

    Referencing a field caption via VBA

    Essentially, I want to compile a list of options that were checked into one text box instead of having to list out each and every check box. Instead of having: ___ Academic _X_ Public _X_ Government ___ Special on the report, I want one field that says: Public; Government Any thoughts on how...

Part and Inventory Search

Back
Top