Creating A Database To Store All Of Our Equipment In?
Jun 19, 2012
I've been having some trouble wrapping my head around how to link the 4 tables I have together. I'm creating a database to store all of our equipment in. The four tables are Equipment, Service (Stores dates that a piece of equipment has been worked on), Invoice (Stores invoice and warranty dates) and Peripheral table (Stores a unique ID for each type of peripheral we have in the database. Monitor (1), mouse (2), keyboard (3) etc)
View 4 Replies
ADVERTISEMENT
Jun 5, 2011
I'm a fairly new programmer so you'll have to bear with me on this. Basically, I have a database with 3 tables, Engineers, Equipment and Signouts. I want to create a VB application that allows engineers to sign out equipment. I have all of the forms setup the way I want, and have followed a tutorial online for how to connect to the database with the MySQL .NET Connector. I have 3 forms, and have a class with all of my global variables in it. All I have managed to thus far, is define connStr as a global variable, and use it to run a connection test when the main form starts up.
My next job is to query for information about an engineer based on their ID. I have a text input box, and a button to click, and then way to display the retreived information on the next page. I have setup variables for the returned values to be put against, so they can be displayed on the form.
My question is, when the button is clicked, how do I make the application query the database based on the ID, and then use the information it returns (Engineers ID, Name and Telephone Number) to assign those values to the variables? Also, on a side note, instead of using forms, I want to use panels, is there a sub routine similar to form_load for using panels when they are shown/hidden?
View 9 Replies
Apr 8, 2009
I have an application that receives incoming data from a Radio Equipment through a hardware modem. How can I replace the hardware modem? Could I use the PC Sound Card in place of the modem?
View 9 Replies
Apr 15, 2010
I'm creating a calculator in visual basic 2008, and with this calculator I want to implement a feature that can store numerical values in a variable for instance x. Similar to the feature used in most graphing calculator that have the button showing: "STO->". I was thinking on using the My.Settings. But I'm having trouble on it.
View 2 Replies
Mar 22, 2012
I am coding a program that will allow the user to input 5 payrolls for Store 1, Store 2, and Store 3. The total of the 5 payrolls are then added together and shown in the respective Store's labels. A total label is also there to add up all the totals into one number. The numbers in the label must be in currency form. My problem is the numbers don't add correctly when I hit calculate. The first two numbers add together, but then after that the number just seems to subtract a random amount.
So far I have this --
Public Class Form1
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Me.Close()
End Sub
[CODE[...
View 14 Replies
Apr 24, 2012
Basically i am creating a console application that will create and store client information as a .txt file it is going okay but i have come across a slight hick up i want to use something on the lines of this .....
dim lastname as string
Do Until Integer.TryParse(Console.ReadLine(), LastName) = False
Console.WriteLine("Invalid input, Please try again")
Console.Write("LastName:-")
[code].....
this works fine to trap out numbers from letters but the problem i am getting is when the program calls uppon LastName it is recording 0 and wanted to know if there is a way of getting past this ..... so basically i need a way to allow letter but not numbers and symbols and then dispay a pernolised error message but at the same time use Stream writer to save was the answer is in a .txt file.
View 3 Replies
Apr 24, 2012
How to allow the user to select the date from the DateTimePicker and store that selected date month and year in the database table?
View 3 Replies
Aug 24, 2009
I am doing an application on receiving sms but the problem is that I want to put the receiving sms in the database. I am not sure how the process works.
Here is the code that I am using
Imports System.IO
Public Class Form1
Dim receivedData As String
Private WithEvents serialPort As New IO.Ports.SerialPort
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
[Code] ....
View 1 Replies
Oct 6, 2010
For my website I've just implemented tinyMCE for my site (just a word processor). Everything works fine except when i try to store the string variable input into a sql server database. I want to store a string and not have the html tags make me exceed the 8000 length limit(the html tags take up most of that space). My question is, is there a solution so I can store my document with the html tags without shortening my document? Create an if statement that will determine the length If > 8000 than split the string apart and insert into separate fields. Maybe their is a compression feature which I'm unaware of?
View 1 Replies
Aug 23, 2009
I am doing a project on sms. I am doing the receive part where the sender send sms and my program just take the sms that has been received and store in the database but the problem is that I did not know how to connect the sql connection with the program that I used which is to detect the receive sms and store it in the database. My problem is that I want to store the receive sms in the database. I am using the SQL Server Database and visual studios 2005 in windows appliaction. I know how to make the connection between the application and the SQL server but I did not know how to implement it when to receive the sms.
[Code]...
View 3 Replies
Feb 1, 2011
I wish to create a visual basic asp.net web application which can store data, entered by the user via a textbox to a database, once the STORE button has been clicked. I also want to be able to view the stored data by clicking VIEW STORED DATA.I am using visual studio and I am a complete beginner. I need to know how to create an appropriate database and how to link it to my web application.
View 2 Replies
Mar 22, 2012
Imports System.Data.Odbc Imports System.IO
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim FileSize As UInt32
Dim rawData() As Byte
Dim fs As FileStream
fs = New FileStream("c:abc.jpg", FileMode.Open, FileAccess.Read)
FileSize = fs.Length
[Code]...
This is my code to store a image to mysql database. But it have error n show as "No mapping exists from object type System.IO.FileStream to a known managed provider native type."
View 5 Replies
Apr 15, 2009
best way to store the data for a .net database and the reasons why. Please note I would like to have access to the database from a blackberry and the option for multiple applications to read & write to the database at the same time.
View 3 Replies
Apr 13, 2011
Problem storing value in array from database
View 3 Replies
Jun 3, 2010
i m making an window application in VB.NET 2005 , i want to know how can i store videos and images in database--pls tell me of using ORACLE 10g or SQL SERVER 2005 or My SQL?
View 3 Replies
Feb 21, 2011
I'm working on an application that is used by English and French users. French users have their computer's regional settings that make the decimal "," instead of "." and the number spacing " " instead of "," So, a French user will input a value "9,78" in a text box. I need to make this value "9.78" so I can safely store it in a database. How can I convert this to the US number format?
View 8 Replies
Jun 5, 2011
I try to store Korean langguage in Microsoft jet OLEDB 4.0 database, but I cant retrive it back.
CODE:
I try to google around for weeks..but still cant find the solution, I believe microsoft jet 4.0 should support unicode, but cant find any command like charset to set the character set.
I've try store with DataTypeEnum.adVarWChar/DataTypeEnum.adWChar/DataTypeEnum.adLongVarWChar.
I've set the regional and lagguage setting to korean(I can view korean in textpad).
I've try System.Threading.Thread.CurrentThread.CurrentCulture = New System.Globalization.CultureInfo("ko-KR") before retrive korean string also.
Now i have totaly no clue. just suspect, i need to do something when create the database or when read from the database, but dont know how.
View 1 Replies
Jan 1, 2009
MAy i know can we store image in database? And yes, can we call out the image from database?? the database used is MS Access..
View 1 Replies
Jun 21, 2010
how to encrypt the password store in the database so that if the database found by pupil it cannot take password from the table .how to encrypt password .I m using microsoft acess as the databese.
View 5 Replies
Dec 22, 2009
Table "employees" has four fields as
sno---name---city-----photo
1------a-----london----
2------b----Tehran----
3------c-----dublin----
I use following codes to pickup employees pictures, How to store photos into table "employees" column photo.
Dim OpenFileDialog1 As New System.Windows.Forms.OpenFileDialog
Dim pic As Image
Dim retVal As DialogResult
[Code].....
View 3 Replies
Dec 7, 2011
how can i get a data from database and store it in a textbox??
View 1 Replies
May 5, 2011
I have Stored PDF file in a database i want to display this PDF file in my VB.net Window Form
How i display PDF in my Form..
View 8 Replies
Jan 4, 2012
I want to read sms from datacard and want to store in the database how can I solve this problem I used AT-Command in c#.Net but only success to send sms from mobile but not read from mobile or sim . same thing I want to implement in datacard using c# or vb.net .
View 5 Replies
Dec 29, 2009
I am building a customer contact management program for our office and would like to be able to store an email log inside the database. My plan is to send emails from the application interface and insert the data into the database; I understand how to do this completely.What I am struggling with is how to receive the emails, parse them and then insert that data into the database.
View 2 Replies
May 17, 2012
How to store all items of database to combo box.
i.e. store complete column in combo box?
View 7 Replies
Oct 17, 2010
I need to be able to accept a password from a user in a WPF app, encrypt it then store this in a database and be able to decrypt later on. However I'm not sure how to implement this.
This is completely trivial so whether it's safe or not doesn't matter. All I need is for it to get working only I'm unsure exactly how to do it. I've tried playing around with the DESCryptoServiceProvider() but haven't gotten anywhere.
To be clear, how exactly do I go about converting a simple password into something that's been encrypted and storing it in the database (and what fields would I store it in). At this point, I'm happy if there's only one key and that key is being defined in the source code.
View 4 Replies
Mar 27, 2009
How can I store an image in a MySQL database using VB.NET? Could you show some examples that use the INSERT command?
View 4 Replies
Apr 20, 2011
How do i store and call images in a SQL database?
View 4 Replies
May 17, 2012
There is combobox and few textboxes.With the help of insert sqlcommand I can store textboxes values in the database.But with the same insert sqlcommand I need to store one more combobox selected item too.
View 2 Replies
Apr 26, 2012
There is combobox and few textboxes.With the help of insert sqlcommand I can store textboxes values in the database.But with the same insert sqlcommand I need to store one more combobox selected item too..How to do this?
View 1 Replies