+ Reply to Thread
Results 1 to 31 of 31

Form creation

  1. #1
    Registered User
    Join Date
    02-10-2013
    Location
    earth
    MS-Off Ver
    Excel 2010
    Posts
    24

    Form creation

    Hi all,
    I am trying to make an order sheet and my idea is that all the orders are shown on one sheet and when clicked on a macro button then it goes to its details. But the problem is that I don't how can i store the records, make them come when clicked on the show order button and browse through records. I also have attached my current work to make it easier to understand.

    Testing .xlsx

  2. #2
    Forum Contributor
    Join Date
    09-25-2012
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    151

    Re: Form creation

    So you have multiple orders on Sheet1. Do you want the macro to run when each ID is clicked? Otherwise, when you click the show order button as you currently have it, how do you want to identify which order to show?

  3. #3
    Registered User
    Join Date
    02-10-2013
    Location
    earth
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Form creation

    Well I want to show the orders when the show order button is clicked and they will be identified using order ID.

  4. #4
    Registered User
    Join Date
    02-10-2013
    Location
    earth
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Form creation

    No one has replied yet so I guess either noone has understood my problem or don't know how to solve it. So plz can anyone tell me what is it? As I need to get this done urgently.

  5. #5
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Form creation

    I confused as to what your needing/wanting. Sheet1 and Sheet2 headers are not the same so what is to go where?
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  6. #6
    Registered User
    Join Date
    02-10-2013
    Location
    earth
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Form creation

    Its like this I want to store order data that is the items that have been ordered on the items sheet and in order sheet I want to show the order id, date, whether its paid or not and other stuff, while the job of the button show order is to extract the order id and show its relevent data for each customer. The problem is that I am not getting how can i store data as an order can have multiple items.

  7. #7
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Form creation

    I still don't follow sorry. Can you mock up another workbook with more details of what is to happen.

  8. #8
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Form creation

    hi

    This is a lot more complicated than you imagine.

    Attached is my first version of a file for you.

    type in a number in the order id box and press go.


    I will now amend this to give you two more functions
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    02-10-2013
    Location
    earth
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Form creation

    okay thx will check it out.

  10. #10
    Registered User
    Join Date
    02-10-2013
    Location
    earth
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Form creation

    Mehmetsik I typed the order I'd and pressed go in the workbook u provided and well nothing happened. Also what do u mean by it is more complicated then u can imagine.

  11. #11
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Form creation

    @saiyan,

    In mehmetcik workbook you only need to type in the number and not the text. So type in 7. If I knew exactly what you are wanting, I don't think it would be difficult. Im just having a hard time getting on the same page as you.

    Might be because you are from Earth and I'm in Outer Space...

  12. #12
    Forum Contributor Toonies's Avatar
    Join Date
    07-30-2009
    Location
    Newcastle, UK
    MS-Off Ver
    Excel 2016
    Posts
    503

    Re: Form creation

    Hi Try this

    Order_Tracker1.xlsm

  13. #13
    Registered User
    Join Date
    02-10-2013
    Location
    earth
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Form creation

    Thx Toonies I checked it but what I want is that the form should be with add order and when show order is clicked the sheet 2 opens and u will know what items have been ordered. I have added more data so u can understand.

    Order_Tracker1.xlsm


    Edit: Sorry but this was meant to be for mike7952
    @Mehmetsik what I am trying to make is like the abacre restaurant software which u can download from here
    Last edited by saiyan x; 03-09-2013 at 02:24 PM.

  14. #14
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Form creation

    Ok

    Where the order number is enter 7 and then find. The macro woill convert this to 000007 and find the data and populate userform.

    Change the 000007 to 000005 and press save, the macro will find the order 000005 and overwrite this information.

    press New. This will create a new number and you can type in your new data.

    Enjoy
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    02-10-2013
    Location
    earth
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Form creation

    Okay mehmetsik thx, but u guys have got only the half part of my problem. U see I want my order to be shown by the form and it should contain the fields that are in sheet 2 that is items, description etc. But where would i store them. Like if i make one order then store all of its details then i want to make another order where would it details go. I can make a new sheet and put everything there but what about the things in the description and item no. that are in sheet 2. These would contains multiple items so how would i store them.

  16. #16
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Form creation

    Ok

    This Version allows to search for all orders of a customer

    enter 07 in customer id and click "Find Cust" click it three times and three customer orders will be shown.

    With regards to the details of the order.

    You sheet 2 will need to start each data list with an empty line, an order number and then list all items on that order.

    I could then pick up all the items on a particular order and show them on either a scrolling box or a combination box.
    Attached Files Attached Files

  17. #17
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Form creation

    I'm still very lost as to what you are really wanting to do, but here's a start of what I might do.
    I created 4 tables, 1. Order Data, 2. Items, 3. Category, 4. Customers. I manually added some data just to be able to pull the data to the form. I haven't coded anything for Creating Orders, Adding New Items, Adding New Category or Adding New Customers. Like I said I'm not exactly following what your wanting.

    what I am trying to make is like the abacre restaurant software which u can download from here
    http://www.freedownload3.com/Busines...-Download.html


    I just noticed your post#13. If the above is what your trying to get this workbook to become, I would suggest either buying it or maybe using Access. I don't think anyone on this site is going to create this kind of application for you.

    Anyway see attached
    Attached Files Attached Files

  18. #18
    Registered User
    Join Date
    02-10-2013
    Location
    earth
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Form creation

    Thx mike7952 for ur file and that's what I wanted except that I want it to show the order when order id or show order button is clicked in the order sheet and I don't want the order ID and customer ID to be in the table with the other fields I want it at the top of the form and how can I add new orders to this form. Also I didn't ask anybody to make something like I stated in my post#13 I just wanted someone to tell me how could I make a form like that.

  19. #19
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Form creation

    Ok

    This form is more or less complete. It is self explanatory.

    To view the code, open visual basic
    Select view project explorer, then click on userform1.
    Clicking on any box will show you the code behind it.

    Try debugging it and you will find out how it works.

    Unfortunately that is the only way to learn.

    You will need to create another userform to create the orders in exactly the same format on sheet2. But as you now have an example it should be relatively easy.

    Enjoy.
    Attached Files Attached Files
    Last edited by mehmetcik; 03-10-2013 at 09:43 AM.

  20. #20
    Registered User
    Join Date
    02-10-2013
    Location
    earth
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Form creation

    Thx mehmetsik just checked out the file u gave and I noticed something, In sheet 2 for every order id the details for the customer were made and the table was made again for a new customer so will I have to make the table again and again to add the customer details or is there a way to make it automatically. Also how can I add fields of sheet 2 in the order form so that I can enter data for them cuz for now it only shows them but does not allows to add data for them.

    Edit: Also can u tell me what are the start and lines field for in sheet 2.
    Last edited by saiyan x; 03-10-2013 at 02:58 PM.

  21. #21
    Registered User
    Join Date
    02-10-2013
    Location
    earth
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Form creation

    @mike7952 can u tell me how can I see the sheets in the workbook u provided because they are locked.

  22. #22
    Registered User
    Join Date
    02-10-2013
    Location
    earth
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Form creation

    Can anyone help me with this plz as I need to do work on this urgently.

  23. #23
    Forum Contributor Toonies's Avatar
    Join Date
    07-30-2009
    Location
    Newcastle, UK
    MS-Off Ver
    Excel 2016
    Posts
    503

    Re: Form creation

    Ok lets see if I understand you.

    You want a Form to populate a table on sheet 2.

    there maybe several tables on sheet 2, but you would like to be able to select a specific table as an when required. ie Customer 1 or Customer 2 so dependent upon which one

    You also want to be able to select items on the form a populate the selected table with this information on a new row.

    is that correct

  24. #24
    Forum Contributor Toonies's Avatar
    Join Date
    07-30-2009
    Location
    Newcastle, UK
    MS-Off Ver
    Excel 2016
    Posts
    503

    Re: Form creation

    Last edited by Toonies; 03-18-2013 at 06:27 PM.

  25. #25
    Registered User
    Join Date
    02-10-2013
    Location
    earth
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Form creation

    Quote Originally Posted by Toonies View Post
    Ok lets see if I understand you.

    You want a Form to populate a table on sheet 2.

    there maybe several tables on sheet 2, but you would like to be able to select a specific table as an when required. ie Customer 1 or Customer 2 so dependent upon which one

    You also want to be able to select items on the form a populate the selected table with this information on a new row.

    is that correct
    What are u saying is correct and I also want the table design to be created automatically and then enter data in it using the form.

    I am checking ur examples and I am getting everything except how can I automatically design the table in sheet 2 when the form would be clicked.
    Last edited by saiyan x; 03-19-2013 at 02:18 PM.

  26. #26
    Forum Contributor Toonies's Avatar
    Join Date
    07-30-2009
    Location
    Newcastle, UK
    MS-Off Ver
    Excel 2016
    Posts
    503

    Re: Form creation

    ok this should point you in the right direction

    http://www.excelforum.com/excel-gene...-using-if.html

  27. #27
    Registered User
    Join Date
    02-10-2013
    Location
    earth
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Form creation

    Okay i started making the form for items but ran into some problems. The problems are the search and delete button as I don't know how to make them. I will attach the workbook i have made until now.

    Test1.xlsm

  28. #28
    Registered User
    Join Date
    02-10-2013
    Location
    earth
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Form creation

    Hi everyone,
    I finally managed to create the workbook that I was talking about but all that missing are some validation rules for the form. I have searched a lot of forums for it but was not able to found anything. So can someone plz tell me how can I create validation rules. I want to create two validation rules in my order form one for the date that is should be less than or equal to today's date and should be greater than 1/1/2013 and the date format is mm/dd/yyyy. The other validation rule i need if for my order id I want a rule to check that all order id's that are to be saved by the user should start from "OD-". Finally my workbook is attached below.

    Test2.xlsm

  29. #29
    Registered User
    Join Date
    02-10-2013
    Location
    earth
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Form creation

    Quote Originally Posted by saiyan x View Post
    Hi everyone,
    I finally managed to create the workbook that I was talking about but all that missing are some validation rules for the form. I have searched a lot of forums for it but was not able to found anything. So can someone plz tell me how can I create validation rules. I want to create two validation rules in my order form one for the date that is should be less than or equal to today's date and should be greater than 1/1/2013 and the date format is mm/dd/yyyy. The other validation rule i need if for my order id I want a rule to check that all order id's that are to be saved by the user should start from "OD-". Finally my workbook is attached below.

    Attachment 223245
    Does anyone have a solution for this yet.

  30. #30
    Registered User
    Join Date
    03-25-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Form creation

    I think I understand what Saiyan meant. Maybe you want the Userform show this list of item that ordered by 1 customer. For example in Sheet 1 there are several numbers of customer that hold their own unique id. Then once you click the id, the the userform pop up and enable you to type the list of item that the customer order as potrayed in sheet 2. Is it right Saiyan? If it is right. I hope somebody can help to solve this problem.

  31. #31
    Registered User
    Join Date
    02-10-2013
    Location
    earth
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Form creation

    Quote Originally Posted by azarafie83 View Post
    I think I understand what Saiyan meant. Maybe you want the Userform show this list of item that ordered by 1 customer. For example in Sheet 1 there are several numbers of customer that hold their own unique id. Then once you click the id, the the userform pop up and enable you to type the list of item that the customer order as potrayed in sheet 2. Is it right Saiyan? If it is right. I hope somebody can help to solve this problem.
    Finally, everything u say is right but now I have done it, thx to mehmetsik and now all I want is a way to validate information that is entered in the userform. I want to validate the date field in the order form by allowing dates that are less or equal to today's date and should be greater than 1/1/2013 (date format is mm/dd/yyyy).

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1