Results 1 to 23 of 23

Thread: hi ...Help me please

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2010
    Posts
    134

    hi ...Help me please

    i found on goggle this cool sites...

    i have problem on my project on vb.net I'm using visual studio 2008


    may i know how to do to show all my sales everyday..


    i have sale almost 5 items every day i want to have list for this.. what should i use?

    thanks for you guys Sorry I'm new on vB.net.. hoping for your some advice..

  2. #2
    Member
    Join Date
    Jun 2010
    Posts
    55

    Re: hi ...Help me please

    You need to give us more information. What do you want you program to do? Where does the information about sales come from?

  3. #3

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Jul 2010
    Posts
    134

    Re: hi ...Help me please

    thanks for reply ...


    I'm on repair section on mobile i have different repair every

    REPAIR TODAY

    on textbox.

    Model: nokia
    Problem: signal
    solution :change ic
    Price: $10

    REPAIR NEXT DAY

    Model: Blackberry
    Problem: hang
    solution :flash
    Price: $20

    TOTAL IN 2 DAYS = $30

    my question is how can i show all my repair during past days till next day with total price ?

  5. #5
    PowerPoster cicatrix's Avatar
    Join Date
    Dec 2009
    Location
    Moscow, Russia
    Posts
    3,654

    Re: hi ...Help me please

    You need a database. You create a database with a table called 'Repairs' and create the following fields (columns) in it:

    ID (int) - Unique record id.
    Model (VarChar) - either simple text or an ID of a known model (taken from another table called 'Models') - this id is called Foreign Key (FK) that identifies a unique record in the Models table.
    Problem (VarChar) - either simple text or an ID of a known problem (taken from another table called 'Problems')
    Solution (VarChar) - the same - either text or a FK to another table.
    Price (money)

    Also you will probably want to add the 'Client' field to identify your customers.

    This is only an example. You can add as many columns as you want and design your database differently.

    You can use any of the most popular database engines (.Net works best with SQLServer or SQLServer Compact Edition, but it also supports nearly all other db engines: MS Access, Oracle, etc). If you decide to use MySQL then you'd need to download a connector from MySQL site.

    By querying your db you can collect any kind of statistical information. To query the database you will need to use SQL (Structured Query Language)

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Jul 2010
    Posts
    134

    Re: hi ...Help me please

    thanks man how about the computation... of total price daily week monthly ...what can i use
    Last edited by standard; Jul 29th, 2010 at 07:39 PM.

  7. #7
    PowerPoster cicatrix's Avatar
    Join Date
    Dec 2009
    Location
    Moscow, Russia
    Posts
    3,654

    Re: hi ...Help me please

    It's resolved by using SQL

    For example, if you have fields Date and Price in your db table (called Sales) then the query that returns the total sales is:

    Code:
    SELECT Sum(Price) As Total FROM Sales WHERE Date =2010-07-30;
    etc.
    SQL is a wery powerful tool that can do many things. Yet, it's intuitive to understand and well-documented.

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Jul 2010
    Posts
    134

    Re: hi ...Help me please

    what data base can i use for this..


    i have only visual studio 2008

    where can i download

  9. #9
    PowerPoster cicatrix's Avatar
    Join Date
    Dec 2009
    Location
    Moscow, Russia
    Posts
    3,654

    Re: hi ...Help me please

    You can create a database using visual studio (for example SQLServer Compact Edition) or create a database in MS Access. Also, you can download MySQL database server from www.mysql.org.

  10. #10

    Thread Starter
    Addicted Member
    Join Date
    Jul 2010
    Posts
    134

    Re: hi ...Help me please

    i used Microsoft access but it seems auto sum doesn't appear in my GUI .tell me what to do...please..
    Last edited by standard; Aug 2nd, 2010 at 12:18 AM.

  11. #11
    PowerPoster cicatrix's Avatar
    Join Date
    Dec 2009
    Location
    Moscow, Russia
    Posts
    3,654

    Re: hi ...Help me please

    For you it can be no difference but for someone else it will be all the difference in the world. MS Access is more suitable for individual use (not very many users, rather poor protection and performance, but requires substantially less resources). Still, it's a good solution if your database is not for a large-scale enterprise.

    Here is more detailed comparison.
    http://www.mssqlcity.com/Articles/Co..._vs_access.htm

    If your experience with databases is rather poor then I suggest you start with MS Access.

    Here is comparison between MS-SQL and MySQL
    http://swik.net/MySQL/MySQL+vs+MS+SQL+Server

    A great advantage of MySQL is that it's completely free.

  12. #12
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: hi ...Help me please

    I would tend not to recommend Access to anyone these days. SQL Server CE and SQL Server Express can both be installed along with VS or separately and are both free. SQL Server Express does have some limitations but they won't affect new developers and it offers almost all of the power of SQL Server. They both integrate well with VS and can be very easily deployed. SQL Server Express requires a server to be installed but that can be done with essentially no effort, or you can use SQL Server CE without a server install.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  13. #13
    PowerPoster cicatrix's Avatar
    Join Date
    Dec 2009
    Location
    Moscow, Russia
    Posts
    3,654

    Re: hi ...Help me please

    Quote Originally Posted by jmcilhinney View Post
    I would tend not to recommend Access to anyone these days. SQL Server CE and SQL Server Express can both be installed along with VS or separately and are both free. SQL Server Express does have some limitations but they won't affect new developers and it offers almost all of the power of SQL Server. They both integrate well with VS and can be very easily deployed. SQL Server Express requires a server to be installed but that can be done with essentially no effort, or you can use SQL Server CE without a server install.
    Deploying and maintaining of an SQL server for simple solutions is not always practical while CE version may lack certain key features. I agree that MS Access has its drawbacks but still may be a more practical solution in certain situations. For simple projects it would be more correct to compare SQLServerCE and Access. While I would prefer SQLServerCE some people may find the fact that Access is very widespread due to MS Office popularity and the fact that it has its own independent IDE to maintain the database an additional advantage.

  14. #14

    Thread Starter
    Addicted Member
    Join Date
    Jul 2010
    Posts
    134

    Re: hi ...Help me please

    i cannot understand what can i download now please help

    1. Sql server Ce?
    2. Sql server?

    3. where to download... please...

  15. #15
    PowerPoster cicatrix's Avatar
    Join Date
    Dec 2009
    Location
    Moscow, Russia
    Posts
    3,654

    Re: hi ...Help me please

    What version of Visual Studio you have? I don't know whether it is present in Express edition, SQL Server is included in the package so it's already there - no need to download. MS Access is a part of MS Office, I'm sure you know it, and MySQL can be downloaded from www.mysql.com (free).

    If you don't plan to deploy a SQL server (full version) on your machine (or on some other) or if you don't have an already running SQL server I suggest you use SQL Server CE.

    Read this tutorial: http://www.homeandlearn.co.uk/csharp/csharp_s12p1.html
    (it's split in topics so don't forget to click the next topic link at the bottom of the page)

    It's a bit outdated but it covers the principles.

  16. #16

    Thread Starter
    Addicted Member
    Join Date
    Jul 2010
    Posts
    134

    Re: hi ...Help me please

    i have VISUAL STUDIO 2008 and Sql server 2005

    i want to learn but i do not know how to use it sir...when i open this will appear .. i cannot find SQL SERVER MANAGEMENT.. ? when i open it just configuration manager...please help...

    [IMG][/IMG]

  17. #17

  18. #18

    Thread Starter
    Addicted Member
    Join Date
    Jul 2010
    Posts
    134

    Re: hi ...Help me please

    sir I'm using vb.net

  19. #19
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: hi ...Help me please

    It doesn't matter, the tutorial cicatrix linked to works the same in VB.

  20. #20

    Thread Starter
    Addicted Member
    Join Date
    Jul 2010
    Posts
    134

    Re: hi ...Help me please

    test successfuly but when i try to click ok this error appear..

    [IMG][/IMG]

  21. #21
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: hi ...Help me please

    Do you have Visual Studio SP1 installed?

  22. #22

    Thread Starter
    Addicted Member
    Join Date
    Jul 2010
    Posts
    134

    Re: hi ...Help me please

    yes i have... problem on my software. .. already fixed..


    my problem now is how to connect form1 to form2=database.
    Last edited by standard; Sep 2nd, 2010 at 09:03 AM.

  23. #23
    Member
    Join Date
    Sep 2008
    Posts
    36

    Re: hi ...Help me please

    Hi Standard, I have the same error message. How did you fixed it? Thank you.

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