| | |
how to update an access DB with vb.net?
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Nov 2004
Posts: 13
Reputation:
Solved Threads: 0
i have a mock site im working on in asp.net/vb.net using an access database. after employees log in they can update there employee profile by filling out a form. i need to know the code for updating an access DB with vb.net from the form fields. im lookin for the syntax on the SQL string and the execute commands afterwards. could someone help me with this or perhaps show me your code for some ideas to point me in the right direction?
also, what would be a good DB to use online? i know access well but i've heard that it doesnt work well online because only one person can access the DB at a time. any free DB's out there that i can scoop?
also, what would be a good DB to use online? i know access well but i've heard that it doesnt work well online because only one person can access the DB at a time. any free DB's out there that i can scoop?
•
•
Join Date: Dec 2004
Posts: 1,655
Reputation:
Solved Threads: 35
You're asking for a lot. You collect your form data from the properties of the various server controls. The syntax for SQL is the same regardless of the underlying database, more or less. MySQL is a good server-side database program.
If you are completely new to data-drive web development, then you need to break things down into discrete steps.
1) Connect to a database, retrieve information, display it on a page. That will teach you how to interact with your database.
2) Build a form with server controls. When the user submits a form, gather the information and post it back to the user. That will teach you how to gather form data.
3) Put it all together.
If you are completely new to data-drive web development, then you need to break things down into discrete steps.
1) Connect to a database, retrieve information, display it on a page. That will teach you how to interact with your database.
2) Build a form with server controls. When the user submits a form, gather the information and post it back to the user. That will teach you how to gather form data.
3) Put it all together.
•
•
Join Date: Nov 2004
Posts: 13
Reputation:
Solved Threads: 0
prob should have been a little more clear with my question. i was just looking for the syntax for an UPDATE with sql (which if i just took 2 seconds i could find myself because i did :cheesy: ) the only question i have now is with a SELECT query i would run ExecuteReader() but this doesn't seem to be right with an update. is there another execute to use?
•
•
Join Date: May 2008
Posts: 1
Reputation:
Solved Threads: 0
Hi,
I have a form in which i want to update data if there is a repeated data in tne table. the table is in access, and i use: vb.net2003.
but i recieve the syntax error in update command. will you please help me:
i put cname and network as key in the table.
thx
I have a form in which i want to update data if there is a repeated data in tne table. the table is in access, and i use: vb.net2003.
but i recieve the syntax error in update command. will you please help me:
ASP Syntax (Toggle Plain Text)
objCmd = New OleDbCommand("UPDATE Table1 WHERE (cname=" & txtcname.Text & " AND network=" & txtnet.Text & ")) set(usb=" & txtusb.Text & ",cd=" & txtcd.Text & ",position=" & txtpos.Text & ",", New OleDbConnection(cmd))
thx
Last edited by peter_budo; May 24th, 2008 at 8:20 pm. Reason: Keep It Organized - please use [code] tags
•
•
•
•
Hi,
I have a form in which i want to update data if there is a repeated data in tne table. the table is in access, and i use: vb.net2003.
but i recieve the syntax error in update command. will you please help me:
objCmd = New OleDbCommand("UPDATE Table1 WHERE (cname=" & txtcname.Text & " AND network=" & txtnet.Text & ")) set(usb=" & txtusb.Text & ",cd=" & txtcd.Text & ",position=" & txtpos.Text & ",", New OleDbConnection(cmd))
i put cname and network as key in the table.
thx
Start your own thread with this question. That way, you'll get the information that you require, and you won't muddle up someone else's thread with a question that might not be directly related...
Alex Cavnar, aka alc6379
![]() |
Similar Threads
- vb.net database connection (VB.NET)
- How to register a new user? (VB.NET)
- Understanding inserting data into an Access table using VB.NET (VB.NET)
- how 2 access outlook from vb.net (VB.NET)
- Updating Access Db Using Vb.net 2005 (VB.NET)
- how do i update to Access db? (C#)
- access UPDATE problems (MS Access and FileMaker Pro)
- how to update visual studio .net 2003 (ASP.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: html compliance when using asp.net
- Next Thread: Message box how to?
| Thread Tools | Search this Thread |
.net 2.0 3.5 ajax alltypeofvideos appliances asp asp.net beginner box browser businesslogiclayer button c# cac checkbox class commonfunctions compatible content contenttype countryselector courier dataaccesslayer database datagrid datagridview datalist deployment development dgv dialog dropdownlist dropdownmenu dynamic dynamically edit embeddingactivexcontrol fileuploader fill findcontrol flash flv formatdecimal formview gridview gudi iis javascript list listbox menu microsoft mouse mssql nameisnotdeclared news novell numerical opera order panelmasterpagebuttoncontrols problem radio ratings redirect registration relationaldatabases reportemail schoolproject search security serializesmo.table sessionvariables silverlight smoobjects software sql sql-server sqlserver2005 ssl tracking treeview unauthorized validatedate validation vb.net videos vista visual-studio visualstudio vs2008 web webapplications webarchitecture webdevelopment webprogramming webservice xsl youareanotmemberofthedebuggerusers






