Results 1 to 6 of 6
  1. #1
    edsilvers1 is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2019
    Posts
    3

    Need help asap with forms

    So i have acquired a Access Database from a person who has left my work without her showing me anything about it.

    My question is this:


    Suppose i have a full database of Work Orders that i am opening and closing in forms and what not. So i want to know if i can have Access automatically generate a new work order with a new "ID" and a new "Due by" date as soon as i close one work order out.

    Please let me know if this makes sense and if i can clarify anything!

    Thank you in advance from an Access noob!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Possibly all you need to do is move to a new record row. Without more details, really can't advise more specific. If you want to provide db for analysis, follow instructions at bottom of my post.

    Strongly advise you get an introductory tutorial book and spend a solid week learning Access.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    edsilvers1 is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2019
    Posts
    3
    Hi,

    I am not sure how to get more specific and i cannot upload the DB.

    In my Work orders, i have it set to where i can only look at “Open” work orders. Which is what i want. But when i “Close” that work order, i want it to automatically generate a new line in my table or generate a new form for a “Open” work order. And i want it to automatically generate a date that is 7 days from when the last work order was “Closed”. Does this clarify at all?

    Sorry again!

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Not much. I don't know how you 'Close' a work order. But I suppose somewhere you could run an INSERT action SQL to create new record in table then requery the form.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    edsilvers1 is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2019
    Posts
    3
    I have a Status Column in my table where i can label things as “open” or “closed” and i want it to where when i enter a work order from “open” to “close” i want it to auto generate a new line in the table and generate with a new ID and new Date

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    So use a form bound to that table. Use control bound to that field. In its AfterUpdate event something like:

    If Me.Status = "Closed" Then
    CurrentDb.Execute "INSERT INTO WorkOrders SET DateFieldName = #" & Me.tbxDate + 7 & "#"
    Me.Requery
    End If
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Please help with this query ASAP
    By SammyConfirmed in forum Queries
    Replies: 9
    Last Post: 04-30-2018, 02:10 PM
  2. Replies: 4
    Last Post: 08-17-2016, 05:57 AM
  3. [Need Help ASAP] Form VBA Code
    By endlessd in forum Access
    Replies: 5
    Last Post: 03-27-2011, 11:46 AM
  4. Help me asap... I need this for my exam
    By freelance_jhoe26 in forum Access
    Replies: 1
    Last Post: 04-20-2009, 02:30 PM
  5. Query help needed asap!!
    By msaccess09 in forum Queries
    Replies: 1
    Last Post: 02-25-2009, 09:39 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