Lost Password?


Go Back   CodeCall Programming Forum > Software Development > Visual Basic Programming

Visual Basic Programming Discussion forum for Visual Basic, an event driven programming language and associated development environment from Microsoft for its COM programming model.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-26-2007, 03:34 AM
hanarina21 hanarina21 is offline
Newbie
 
Join Date: Mar 2007
Posts: 4
Rep Power: 0
hanarina21 is on a distinguished road
Smile how to update another table at the same command button?

i have an error occured in my project when i try to run it..
when i placed the code
Code:
"Set RS = Nothing
sql6 = "Update alatan set STATUS_ALATAN = 'Belum di pinjam' where NO_INVENTORI= '" & Text1.Text & "' "
con.Execute (sql6)
Set RS = Nothing
"
the error says that
"microsoft [odbc microsoft access driver ] too few parameters.expected 1.
how can i fix the error?

Last edited by Jordan; 03-26-2007 at 07:33 AM. Reason: Added Code Tags
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 03-26-2007, 07:34 AM
Jordan's Avatar   
Jordan Jordan is offline
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Posts: 9,582
Last Blog:
Ext JS or Ext GWT
Rep Power: 20
Jordan is just really niceJordan is just really niceJordan is just really niceJordan is just really nice
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan
Default

You need an Update before you can set:

Code:
UPDATE table SET RS=........
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog
The CodeCall Wiki is now fully integrated with vBulletin users! Check it out and add some new pages!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-27-2007, 12:16 AM
hanarina21 hanarina21 is offline
Newbie
 
Join Date: Mar 2007
Posts: 4
Rep Power: 0
hanarina21 is on a distinguished road
Smile

Quote:
Originally Posted by Jordan View Post
You need an Update before you can set:

Code:
UPDATE table SET RS=........
thanks 4 the code that you've post.
but i'm not really clear with the code.can you give an example of code about the update command.
thanks..
i need reply from you as soon as possible.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-27-2007, 12:25 AM
hanarina21 hanarina21 is offline
Newbie
 
Join Date: Mar 2007
Posts: 4
Rep Power: 0
hanarina21 is on a distinguished road
Default

thanks 4 the code that you've post.
but i'm not really clear with the code.can you give an example of code about the update command.
thanks..
i need reply from you as soon as possible.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 03-27-2007, 04:03 PM
Jordan's Avatar   
Jordan Jordan is offline
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Posts: 9,582
Last Blog:
Ext JS or Ext GWT
Rep Power: 20
Jordan is just really niceJordan is just really niceJordan is just really niceJordan is just really nice
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan
Default

Try this:


"UPDATE tableNameHere Set RS = Nothing
sql6 = "Update alatan set STATUS_ALATAN = 'Belum di pinjam' where NO_INVENTORI= '" & Text1.Text & "' "
con.Execute (sql6)
Set RS = Nothing
"
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog
The CodeCall Wiki is now fully integrated with vBulletin users! Check it out and add some new pages!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange error in update app McMillan0520 C# Programming 1 08-08-2007 12:52 PM
ODBC API - Special Table and Column Names Tronman Database & Database Programming 0 07-30-2007 01:52 PM
Create temporary table in VB6 lfc1211 Visual Basic Programming 3 05-11-2007 05:29 PM
Adding a calculated column to a table reachpradeep Database & Database Programming 0 03-05-2007 08:13 AM
Working with TADO Table MrDiaz Pascal/Delphi 0 07-03-2006 07:28 PM


All times are GMT -5. The time now is 06:40 PM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 100%


Complete - Celebrate!

Ads