|
-
Jul 28th, 2010, 02:47 AM
#1
Thread Starter
Addicted Member
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..
-
Jul 28th, 2010, 07:16 AM
#2
Member
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?
-
Jul 28th, 2010, 07:21 AM
#3
Re: hi ...Help me please
First of all you should store the information about your sales somewhere. Where is it?
-
Jul 28th, 2010, 09:10 PM
#4
Thread Starter
Addicted Member
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 ?
-
Jul 29th, 2010, 12:49 AM
#5
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)
-
Jul 29th, 2010, 07:35 PM
#6
Thread Starter
Addicted Member
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.
-
Jul 30th, 2010, 12:17 AM
#7
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.
-
Jul 31st, 2010, 03:27 AM
#8
Thread Starter
Addicted Member
Re: hi ...Help me please
what data base can i use for this..
i have only visual studio 2008
where can i download
-
Jul 31st, 2010, 04:48 AM
#9
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.
-
Aug 1st, 2010, 10:57 PM
#10
Thread Starter
Addicted Member
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.
-
Aug 2nd, 2010, 12:14 AM
#11
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.
Last edited by cicatrix; Aug 2nd, 2010 at 12:18 AM.
-
Aug 2nd, 2010, 01:10 AM
#12
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.
-
Aug 2nd, 2010, 02:36 AM
#13
Re: hi ...Help me please
 Originally Posted by jmcilhinney
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.
-
Aug 2nd, 2010, 05:18 AM
#14
Thread Starter
Addicted Member
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...
-
Aug 2nd, 2010, 06:42 AM
#15
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.
Last edited by cicatrix; Aug 2nd, 2010 at 06:46 AM.
-
Aug 2nd, 2010, 07:12 PM
#16
Thread Starter
Addicted Member
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]
-
Aug 3rd, 2010, 12:23 AM
#17
Re: hi ...Help me please
Did you follow the instructions from here: http://www.homeandlearn.co.uk/csharp/csharp_s12p1.html
All you need is to 'Add new Item'/Database to your project.
-
Aug 3rd, 2010, 06:03 AM
#18
Thread Starter
Addicted Member
-
Aug 3rd, 2010, 06:17 AM
#19
Re: hi ...Help me please
It doesn't matter, the tutorial cicatrix linked to works the same in VB.
-
Aug 4th, 2010, 05:21 AM
#20
Thread Starter
Addicted Member
Re: hi ...Help me please
test successfuly but when i try to click ok this error appear..
[IMG] [/IMG]
-
Aug 4th, 2010, 07:36 AM
#21
Re: hi ...Help me please
Do you have Visual Studio SP1 installed?
-
Aug 27th, 2010, 09:12 PM
#22
Thread Starter
Addicted Member
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.
-
Oct 3rd, 2010, 11:35 PM
#23
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|