Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

Automatic Reports

Discussion in 'Information Technology' started by Grassy7, Jul 28, 2006.

  1. Grassy7

    Grassy7
    Expand Collapse
    Guest

    Does anyone know how to create a Code that would print out a warning
    report regarding the re-order quantity of products in inventory? I've
    seen in the Northwinds database that there is a field in the Products
    Table that shows the re-order quantity level. When a product quantity
    gets too low, how can the user know to order more? I'm thinking either
    a report that prints automatically or a pop-up warning message. Any
    thoughts?
     
  2. Loading...


  3. Wayne-I-M

    Wayne-I-M
    Expand Collapse
    Guest

    There are quite a few ways to do what you want BUT I personaly don't like
    coming into the office to find reports have been printed over night or when
    you are not expecting them so -
    It would be a good idea to run the code each morning (when you have had at
    least 10 cups of tea). You could put this behind the On-Load of you main
    switchboard form. (it's just an idea)
    Change the [DetailOfStockLevel] and [ReportName]


    Private Sub Form_Load()
    On Error GoTo Form_Load_Err
    If (DetailsOfStockLevel < 10) Then
    DoCmd.OpenReport "ReportName", acViewNormal, "", "", acNormal
    End If
    Form_Load_Exit:
    Exit Sub
    Form_Load_Err:
    MsgBox Error$
    Resume Form_Load_Exit
    End Sub


    --
    Wayne
    Manchester, England.



    "Grassy7" wrote:

    > Does anyone know how to create a Code that would print out a warning
    > report regarding the re-order quantity of products in inventory? I've
    > seen in the Northwinds database that there is a field in the Products
    > Table that shows the re-order quantity level. When a product quantity
    > gets too low, how can the user know to order more? I'm thinking either
    > a report that prints automatically or a pop-up warning message. Any
    > thoughts?
    >
    >
     
  4. Wayne-I-M

    Wayne-I-M
    Expand Collapse
    Guest

    So forgot to mention to open a Pop up form use

    DoCmd.OpenReport "PopupFormName", acViewNormal, "", "", acNormal


    You need some way of telling when the stock levels are too low
    [stockIn],[stockOut],[stockWarning] The last [ ] could be the number at which
    the code is triggered - or better still just run this in the base query of
    the form



    --
    Wayne
    Manchester, England.



    "Wayne-I-M" wrote:

    > There are quite a few ways to do what you want BUT I personaly don't like
    > coming into the office to find reports have been printed over night or when
    > you are not expecting them so -
    > It would be a good idea to run the code each morning (when you have had at
    > least 10 cups of tea). You could put this behind the On-Load of you main
    > switchboard form. (it's just an idea)
    > Change the [DetailOfStockLevel] and [ReportName]
    >
    >
    > Private Sub Form_Load()
    > On Error GoTo Form_Load_Err
    > If (DetailsOfStockLevel < 10) Then
    > DoCmd.OpenReport "ReportName", acViewNormal, "", "", acNormal
    > End If
    > Form_Load_Exit:
    > Exit Sub
    > Form_Load_Err:
    > MsgBox Error$
    > Resume Form_Load_Exit
    > End Sub
    >
    >
    > --
    > Wayne
    > Manchester, England.
    >
    >
    >
    > "Grassy7" wrote:
    >
    > > Does anyone know how to create a Code that would print out a warning
    > > report regarding the re-order quantity of products in inventory? I've
    > > seen in the Northwinds database that there is a field in the Products
    > > Table that shows the re-order quantity level. When a product quantity
    > > gets too low, how can the user know to order more? I'm thinking either
    > > a report that prints automatically or a pop-up warning message. Any
    > > thoughts?
    > >
    > >
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page