Results 1 to 8 of 8

Thread: [RESOLVED] Need Urgent Help Access Form....

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2005
    Posts
    152

    Resolved [RESOLVED] Need Urgent Help Access Form....

    Hi all,

    i have tried no of thing's to Populated the Relation between the no of form but it's Won't help me ....
    pls help me any one my requirement is as follows
    i have three table as
    Customer,
    OrderHeader,
    SubOrder,

    in Customer table i have two filelds CustomerID,CustomerName
    in OrderHeader table i have OrderNbr as primary key and CustomerID as Foreign key and other column also, in SubOrder table i have filed name subOrderNbr as primary key and OrderNbr as foreign key from OrderHeader table using this info i want to genrate form for Select one CustomerName from DropDown and place one order (SubOrder also) for that customer pls send me sample Db using your Filed name and othere info..

    thanx and Regards,
    Nilesh Thakur.

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Need Urgent Help Access Form....

    It sounds like yoiur db design may need some rethinking.

    You may be better having a Customers table and a Orders table. I dont see the need for splitting the orders up the ways you have?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 2005
    Posts
    152

    Re: Need Urgent Help Access Form....

    Hi robdog
    thanx for you responce, i have three table's one for "Customer" one for "Order" table and one for "Ordersubtable"

    "Customer" Table
    in customer table it contain the fileds as follows
    this table is use for store the customer name and ID only

    CustomerId primarykey
    CustomerName

    Order Table
    tihs table is use for trace the order for perticular customers

    OrderNbr primarykey
    CustomerID foreignkey
    OrderAddress
    --------
    --------

    "OrderDetail" table

    this table is use for trace the item in perticular order
    suppose one customer place ordre with number of items..
    so OrderDeatil table is use for that ...

    OrderDetailID PrimaryKey
    OrderNbr ForeignKey

    so if i want to relate all this three table then need to write query for that ..

    My Question is that if you are able to show me how can i place one order for perticular customer by selecting customer name from dropdown and all data should save in each table ??

    pls help me by sending sample db or code i have search all try your sample DB also but not solve my issue

    pls help me regarding this ..

    Thanx and Regards,
    Nilesh Thakur.

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Need Urgent Help Access Form....

    OrderDetail is not necessary and all info about the order should be in the Order Table.

    Customer
    ---------
    CustomerId primarykey
    CustomerName

    Order
    ---------
    OrderNbr primarykey
    CustomerID foreignkey
    OrderAddress

    Is about the minimum of what you need.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Nov 2005
    Posts
    152

    Re: Need Urgent Help Access Form....

    hi ROBDog,

    i am sending you my DB with three Table pls see it, using this DB i want to place the order for perticualr client
    thanx and regards,
    Attached Files Attached Files
    Last edited by nileshhthakur2004; Mar 21st, 2006 at 09:22 AM.
    Nilesh Thakur.

  6. #6
    Frenzied Member KGComputers's Avatar
    Join Date
    Dec 2005
    Location
    Cebu, PH
    Posts
    2,024

    Re: Need Urgent Help Access Form....

    Hi,

    Based from the .zip database file, you don't have relationships defined...I guess you need to relate your tables with one another...Say, Order headers relates with ordersubtable, customer relates to orderheader, products relates to orderssubtable...

    CodeBank: VB.NET & C#.NET | ASP.NET
    Programming: C# | VB.NET
    Blogs: Personal | Programming
    Projects: GitHub | jsFiddle
    ___________________________________________________________________________________

    Rating someone's post is a way of saying Thanks...

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Nov 2005
    Posts
    152

    Re: Need Urgent Help Access Form....

    Hi KGComputer,

    thanx for your help i have set Relation between by Tabls in DB and using some codding now my problem is get solved thanx onece again..

    thanx and regards,
    Nilesh Thakur.

  8. #8
    Frenzied Member KGComputers's Avatar
    Join Date
    Dec 2005
    Location
    Cebu, PH
    Posts
    2,024

    Re: [RESOLVED] Need Urgent Help Access Form....

    Hi,


    Glad to be of service....

    Your welcome....

    CodeBank: VB.NET & C#.NET | ASP.NET
    Programming: C# | VB.NET
    Blogs: Personal | Programming
    Projects: GitHub | jsFiddle
    ___________________________________________________________________________________

    Rating someone's post is a way of saying Thanks...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width