Click here to Skip to main content
15,891,703 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Please help me... I have 10 days to finish the project :( Pin
Chandana Subasinghe6-Mar-06 13:02
Chandana Subasinghe6-Mar-06 13:02 
NewsRe: Please help me... I have 10 days to finish the project :( Pin
FeRtoll6-Mar-06 13:21
FeRtoll6-Mar-06 13:21 
AnswerRe: Please help me... I have 10 days to finish the project :( Pin
Steve Pullan6-Mar-06 13:29
Steve Pullan6-Mar-06 13:29 
NewsRe: Please help me... I have 10 days to finish the project :( Pin
FeRtoll6-Mar-06 13:31
FeRtoll6-Mar-06 13:31 
GeneralRe: Please help me... I have 10 days to finish the project :( Pin
Steve Pullan6-Mar-06 13:52
Steve Pullan6-Mar-06 13:52 
GeneralRe: Please help me... I have 10 days to finish the project :( Pin
FeRtoll6-Mar-06 14:00
FeRtoll6-Mar-06 14:00 
GeneralI found the answer... Pin
FeRtoll6-Mar-06 14:09
FeRtoll6-Mar-06 14:09 
QuestionAccess Table update Error Pin
New_Coder6-Mar-06 11:37
New_Coder6-Mar-06 11:37 
I get the following error when I try to update my access table with a datagrid

An unhandled exception of type 'system.invalidoperation" occured in system.data.dll'

The code I am using looks like this:

If CODE_DataSet.HasChanges Then

Dim CON As New OleDbConnection(CONNECT_STRING)
Dim MY_SQL As String
Dim CMD As OleDbCommand
Dim DR As OleDbDataReader
Dim data_adapter As OleDbDataAdapter
Dim command_builder As OleDbCommandBuilder

Dim select_string As String = "SELECT TMP_ADMIN.QUOTE_LINE_NO, TMP_ADMIN.OPTION, TMP_ADMIN.PRODUCT_CODE, TMP_ADMIN.DESCRIPTION, TMP_ADMIN.QTY, TMP_ADMIN.UNIT_COST, TMP_ADMIN.SELL, TMP_ADMIN.TAG FROM TMP_ADMIN;"

CMD = New OleDbCommand(select_string, CON)
data_adapter = New OleDbDataAdapter(select_string, CONNECT_STRING)
data_adapter.TableMappings.Add("Table", CODE_TABLE)
command_builder = New OleDbCommandBuilder(data_adapter)

command_builder.GetUpdateCommand()

data_adapter.Update(CODE_DataSet)
End If


Any ideas? is there a better way to upgrade my MSAccess tables from a datagrid?
Confused | :confused:
AnswerRe: Access Table update Error Pin
FeRtoll6-Mar-06 12:18
FeRtoll6-Mar-06 12:18 
AnswerRe: Access Table update Error Pin
Dave Kreskowiak6-Mar-06 12:54
mveDave Kreskowiak6-Mar-06 12:54 
GeneralRe: Access Table update Error Pin
New_Coder6-Mar-06 16:55
New_Coder6-Mar-06 16:55 
GeneralRe: Access Table update Error Pin
Dave Kreskowiak7-Mar-06 4:25
mveDave Kreskowiak7-Mar-06 4:25 
GeneralRe: Access Table update Error Pin
New_Coder7-Mar-06 10:22
New_Coder7-Mar-06 10:22 
GeneralRe: Access Table update Error Pin
Dave Kreskowiak7-Mar-06 12:00
mveDave Kreskowiak7-Mar-06 12:00 
QuestionTreeview with Listbox Pin
digicd16-Mar-06 11:13
digicd16-Mar-06 11:13 
AnswerRe: Treeview with Listbox Pin
digicd121-Mar-06 7:59
digicd121-Mar-06 7:59 
QuestionProblem running exe from a network location Pin
penguin50006-Mar-06 11:08
penguin50006-Mar-06 11:08 
AnswerRe: Problem running exe from a network location Pin
H@is@here6-Mar-06 11:27
H@is@here6-Mar-06 11:27 
QuestionVBScript String Formatting Pin
Justin Cooke6-Mar-06 8:38
Justin Cooke6-Mar-06 8:38 
AnswerRe: VBScript String Formatting Pin
Dave Kreskowiak6-Mar-06 9:25
mveDave Kreskowiak6-Mar-06 9:25 
GeneralRe: VBScript String Formatting Pin
Justin Cooke6-Mar-06 10:58
Justin Cooke6-Mar-06 10:58 
QuestionReferences Pin
KreativeKai6-Mar-06 8:13
professionalKreativeKai6-Mar-06 8:13 
AnswerRe: References Pin
Dave Kreskowiak6-Mar-06 9:11
mveDave Kreskowiak6-Mar-06 9:11 
GeneralRe: References Pin
KreativeKai20-Mar-06 7:13
professionalKreativeKai20-Mar-06 7:13 
Questionmultithreading Pin
DoubleD_6-Mar-06 7:15
DoubleD_6-Mar-06 7:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.