DB/Reporting :: Display / Edit And Create Insurance Records
Mar 14, 2008
I'm using Visual Basic 2005 and I have created a program to display, edit, and create insurance records. Right now I am using an access database and it is hosted locally. What I want to be able to do is host it on our server here at our office and have the program installed on every computer on the network.
My connection string at the moment looks like this:
Code:
Public con As New OleDb.OleDbConnection
con.ConnectionString = "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source = C:Insurance ProgramInsurances.mdb"
'Opens connection
con.Open()
View 11 Replies
ADVERTISEMENT
Aug 17, 2009
I have a DataGridView bound to a non-SQL Server database.I need to allow users to edit existing records but under certain circumstances I need to intercept the edit and instead of committing and updating the dataset I need to delete the edited record and re-add it as a new record.I have tried using every event I can think of to do this but haven't managed to get it right. [code] This almost works but sometimes completely messes up and re-adds rows twice and all kinds of other bad side effects.
View 9 Replies
Feb 24, 2012
I am basically trying to create some records using Structures as you can see below, however the value of Index doesnt seem to be incrementing as I am assigning it to txtCustomerId.text each time form loads, however the value of the text box remains at 1000 all the time
Code:
Public Class Form1
Dim NumberOfCustomers As Integer
Dim Index As Integer
[Code].....
View 1 Replies
Feb 9, 2010
I want to search the records from the textbox and display the records to the datagridview, if there are no records, just display empty on the datagridview.
this is not working:
Dim sqlsearch As String
sqlsearch = "SELECT * FROM setting WHERE mname LIKE '%" & TextBox.Text
[code].....
View 1 Replies
Jun 21, 2010
add edit and delete records in access using vb.net.i got textbox 1 to5 and three buttons which named addnew ,edit, delete.my database is in name records.mdb i want user to enter the information and click addnew button and the system save the records and so on with edit and delete.
View 3 Replies
Aug 17, 2009
I have a DataGridView bound to a non-SQL Server database. I need to allow users to edit existing records but under certain circumstances I need to intercept the edit and instead of committing and updating the dataset I need to delete the edited record and re-add it as a new record. I have tried using every event I can think of to do this but haven't managed to get it right.
The closest I have got is with this:
Dim theRow As DataGridViewRow
Private loading As Boolean = True
Private rowLeft As Boolean = False
Private WithEvents cm As CurrencyManager
Dim copiedRow0 As String
[Code] .....
This almost works but sometimes completely messes up and re-adds rows twice and all kinds of other bad side effects. It seems a really simple thing to want to do but I just can't get it working.
View 18 Replies
Jun 6, 2011
how to use datagridview and why and when we use adaptor and data reader
View 1 Replies
Jul 18, 2011
with vb.net + access 2007 i am having a database with 2 tables & 4.85 lak records
the task:i want to Loop through all the records & compare the Current record with the previous record & edit the database with some changes as per logic i have written a procedure but the process is very slow approximately it is taking 1 to 1.5 second to check & edit a record
here is my code
vb.net
Private Function ISCasuaLty(ByVal CAStype As String) As Boolean 'this procedure checks whether the duty type is of Casualty'& returns true if the casualty is "Y" else "N" FALSE If CAStype = "" OrElse CAStype Is Nothing OrElse CAStype = " " Then Return True ' there
[code].....
View 1 Replies
Mar 11, 2010
I want to search the records from the textbox and display the records to the datagridview, if there are no records, just display empty on the datagridview.[code]
View 8 Replies
Dec 13, 2010
I have an application where I would like to allow the user to change one field in a datatable but leave the other ones uneditable. I am using a datagridview to do this but I can only make the whole table editable or not. The result should be an order form where you have a determined product and should only be able to change the number of items.
View 2 Replies
Apr 22, 2008
In my datagrid, i added a checkbox column, and what i want to do is be able to change the value of one column (in as many rows that are selected) to a certain value. Like from a combo box is it possible to have a combobox in a messagebox? or do you have to create a new form?
View 5 Replies
Jun 21, 2010
Dear Friends I have Developed a Successful Database Software, it include Datagrid, First, Last, Next, Previous, Add, Delete, Edit, Update, Search just Every Thing is Working Nice, But I need help from one of expert from you. my problem is that every time when i Start program its all functions are workin including edit and delete. (mean data (rows) Added at previous run is able to be Delted at current time) but when i add new record at current run time it adds succesfully, but while at same run time session (current) i tries to Delete or edit new added roecord it is not working, in simple words new added records are not able to delete and edit at same run session. i m including project's zip file and plz try to run it and add new record, after adding record at same time try to edit or Delete new added record.
View 3 Replies
Oct 14, 2009
I'm using visual basic 2008 express edition by linq to sql for my database operation such as edit records. I did not use any sql server but I'm just using the built-in sql server within the visual basic 2008 express. I tried to revised the codes, no error in syntax but there's an error at runtime and it pops-up a window message saying its error message. What I want is to edit the records which were retrieved from the database into the text-boxes and when you click the button5 whatever the new value on the text-boxes should replace the previous one.The Account field is the field in my Table1 in memrec.dbml which I set up for primary key is true and the rest of the fields are false in its primary key.[code]...
View 3 Replies
Oct 19, 2009
Is it possible to do a multiple records editing by linqtosql method in one click event? What I've been trying to do is to edit all the names in the table which are having the same account number. I was able to edit but only one name has been edited and the rest are not.
The codes I used.
Private Sub Button2_Click(------------) Handles Button2.Click
Dim accnt As String
accnt = Textbox1.Text
Dim db As New memrecDataContext()
Dim editrecord = From mem In db.Table1s
[Code] ......
Why is it these codes could only edit records in one datarow?
View 1 Replies
Oct 14, 2009
I'm using visual basic 2008 express edition by linq to sql for my database operation such as edit records. I did not use any sql server but I'm just using the built-in sql server within the visual basic 2008 express. I tried to revised the codes, no error in syntax but there's an error at runtime and it pops-up a window message saying its error message. What I want is to edit the records which were retrieved from the database into the text-boxes and when you click the button5 whatever the new value on the text-boxes should replace the previous one.The Account field is the field in my Table1 in memrec.dbml which I set up for primary key is true and the rest of the fields are false in its primary key.The code below still found an error when you run the program and it pops-up a window which says:
NotSupportedException was unhandled - Sql server does not handle comparison of NText, Text, Xml, or Image data types.It highlights a yellow background on the line:
db.SubmitChanges()
These are what I see on each field's property on Table1 in memrec.dbml property window:
Access - Public
Type - String(System.String)
Server Data Type - Text[code]........
View 3 Replies
Oct 26, 2009
When i tried with the code discussed in this forum i am able to add records but not modify any particular existing record.
[Code].....
View 4 Replies
Apr 6, 2008
I am looking for sample code that will allow me to read, write and edit records to a local MS Access DB using VB9.For my project, the datagrid and other controls are not an option.I have looked everywhere and cannot find any code examples.I assume it should be straight forward, but with all the changes in VB9 its tough.
View 1 Replies
May 12, 2010
how can i access the sql server express database table in vb.net on forms to insert records,delete records,search records,edit records.I have made table by using visual studio.
View 5 Replies
Mar 13, 2011
I need to be able to save, edit, and delete records in an access database through vb2008. Editing and deleting records works perfect, but I cannot save new records. Can anyone assist?
Here is my code
Imports System.Data.OleDb
Public Class Main_Form
Dim con As OleDbConnection
Dim cmd As OleDbCommand
[code].....
View 8 Replies
Sep 26, 2009
This is the hardest part of LinqtoSql database handling operations in visual basic 2008 I ever encountered,w/c is the update operation cause Ive been posting this thread several times from the other forum site but noone yet was able to answer my question,examples were given but its not efficient cause it won't specify based on the codes i gave and i know its not easy but im still hoping that one of the answerers of this forum will be able to resolve this particular linqtosql operation codes. I used textboxes in manipulating all data into the database such as displaying records, adding records, & updating records, basically I used with textboxes in doing those database operations. I will give you 3 block of codes w/c corresponds those database operations I used and differentiate from each other inorder for us to determine why one of them has no progress or won't do its operation w/c is the update operation...
*************Block of Codes#1(Adding Records)*************
Private Sub Button1_Click(------------------) Handles Button1.Click
Dim db As New memrecDataContext()
[code]....
I would like you to identify,differentiate, or troubleshoot the block of codes#3, or anyhow, why it has no progress at all or it won't edit and change the records but it runs and no error in regards with its code, and the other 2 blocks of codes were able to successfully do its operations.I was just wandering why only the block of codes#3 is not doing its operation successfully when you change the record being displayed in the textbox.Is there a possible way to edit records in the textboxes?If there is.... Is it possible to debug the block of codes#3 to successsfully do its operation? If you could possibly give an example,can you based it on the block of codes#3?
View 6 Replies
Feb 28, 2008
I have a database table that has in it, for example:
Room1
Room2
Room3
[code].....
View 3 Replies
Jan 5, 2010
I'm trying to use a DataGridView Control to Add/Edit/Delete records in a simple database
table.I used the wizard to create the datagridview and it created a dataset a bindingsource
and a tableadaptor.When i run my project, data that is in the database table is displayed
correctly, but I can't add/edit/delete. What events/actions do I need to perform to add
these capabilities?
View 2 Replies
Nov 20, 2008
i have a query as follow:
gconn.BeginTrans
strSQL = "INSERT table_name (....) " & _
"SELECT fields_name FROM table_name2..." & _
[code].....
View 4 Replies
Feb 2, 2009
I am a high school student and i am teaching myself VB, C# and C++... it is a slow process containing mainly trial and error, looking up things online, and when the time is right asking assistance from people who know more then I.
I am currently creating a VB program that creates a database of questions, and the same or separate database. using them questions it can initiate a quiz that will save results in a different database for each student. I am having difficulties getting the code right for reading the databases, and getting it to move to the next portion of the database for each question... a little more info:
Question # = Primary key (there will not be more then 1 of the same # problem)
Question Type = i am using different integers right now to specify if the question is a T/F, Multiple Choice, Open info Et Cetra.... Question Answer = Correct answer Alt answer (x3) = option to add other answers for multiple choice problems...
I don't know exactly how to get it to read a problem and when clicking a next button on a form to have it go to the next question in the database..
View 3 Replies
Apr 1, 2009
Is it possible to have a quick and easy way of retrieving the last 10 records from a table?
Currently what I have been doing is retrieving all the records then one-by-one cylcing through each record until I have the last 10. To me this seems to have a lot of over-head reading each record. I just wondered if there was a quicker way of doing it.
View 2 Replies
Jun 2, 2008
An order can have many OrderDetails, and a Product can be on many different orders. The OrderDetail table just has the OrderID and productID, so there is essentially a many-to-many between order and product).I have a form for the user to enter a new order. I want to have an unbound box that contains the names of all the products, and to be able to drag these names into a box under the order, to add a new OrderDetail record using the productID of the dragged order along with our orderID.
View 1 Replies
Apr 17, 2008
If I use the CmdObj.ExecuteNonQuery() I got an error
I'm not having an open connectoin.
View 2 Replies
Nov 27, 2010
Code:
Dim cn As New ADODB.Connection()
cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:BackupEon of LightEon Of Light.mdb"
[code]....
' This code not Working :('Error Messege in md.Save()
View 5 Replies
May 7, 2008
I'm trying to build a new customer data entry page for a db project. One of the features I would like to add is a way to check and see if there have been any new records that have been added that haven't been explicitly saved to the db. If so, when the form_closing events fires I want to evaluate whether or not new entries have been made that weren't saved, and then count the number of rows that haven't been saved.
[Code]...
View 1 Replies
Apr 15, 2008
I am using Windows XP and Visual Studio 2003 .NET in VB.
I have created a parameter query using data controls on a form. The SQL works when I paste it into MS Access (and set the values to those I type in the input form) it returns 3 records. In the VB form I only ever get the first matching record. By changing the input by sorting in different orders I still only get the first matching record ( a different one). If I alter my input so the first does not match but the second and third do match I get only the second. Why Don't I get the set of three?
<Code>
Part SQL:
'WHERE
' (Houses4Sale.HousesAskingPrice <= ?)
[Code].....
View 1 Replies