Results 1 to 2 of 2
  1. #1
    DarrenUD is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    22

    Angry Northwind Database Question....

    Hi All,

    I was going through the Access Nothwind database in order to get some insight about getting some ideas to develop my own database and I am really confused with some of its design methods they have used as I am not an expert Access developer. for ex. can someone explain to me how they they have accomplish this:

    1. When I open new Purchase order from, I am unable to access any controls on the form until I select a supplier from the supplier's combo box. Well, I can't find the piece of code, macro or any other method they used to enable the [Created by] combo box control. Even in the supplier ID combo box After_Update event I can't find any related code to that event. Please Help.

  2. #2
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Code is firing from main form on current event.


    Dim Status As PurchaseOrderStatusEnum

    Me.Supplier_ID.SetFocus

    Status = Nz(Me![Status ID], New_PurchaseOrder)

    Me.cmdSubmitforApproval.Enabled = (Status = New_PurchaseOrder)
    Me.cmdApprovePurchase.Enabled = (Status = Submitted_PurchaseOrder)
    Me.cmdCancelPurchase.Enabled = (Status <> New_PurchaseOrder)

    If IsNull(Me![Supplier ID]) Then
    Me.[Purchase Details_Page].Enabled = False
    Else
    Me.[Purchase Details_Page].Enabled = (Status = New_PurchaseOrder) Or (Status = Submitted_PurchaseOrder)
    End If

    Me.[Inventory Receiving_Page].Enabled = (Status = Approved_PurchaseOrder)
    Me.[Payment Information_Page].Enabled = (Status = Approved_PurchaseOrder)

    Me.AllowEdits = Not (Status = Closed_PurchaseOrder)
    Me.AllowDeletions = Not (Status = Closed_PurchaseOrder)

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

Similar Threads

  1. Help with Database from Northwind
    By jpl85716 in forum Access
    Replies: 2
    Last Post: 09-24-2010, 08:35 AM
  2. Question about Northwind Splitform Controls
    By ajetrumpet in forum Forms
    Replies: 2
    Last Post: 09-13-2010, 09:08 PM
  3. Microsoft's Northwind database example
    By pkstormy in forum Code Repository
    Replies: 0
    Last Post: 08-30-2010, 08:52 PM
  4. Question on Northwind catagories form
    By Icedog in forum Access
    Replies: 1
    Last Post: 09-25-2008, 08:10 AM
  5. Northwind sample database query
    By wasim_sono in forum Programming
    Replies: 5
    Last Post: 02-28-2006, 07:34 AM

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