Click here to Skip to main content
15,889,931 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: PowerPoint Application Pin
JR21218-Jun-10 2:13
JR21218-Jun-10 2:13 
GeneralRe: PowerPoint Application Pin
EliottA18-Jun-10 2:27
EliottA18-Jun-10 2:27 
GeneralRe: PowerPoint Application Pin
JR21218-Jun-10 20:38
JR21218-Jun-10 20:38 
GeneralRe: PowerPoint Application [modified] Pin
MsmVc18-Jun-10 2:31
MsmVc18-Jun-10 2:31 
GeneralRe: PowerPoint Application Pin
EliottA18-Jun-10 2:33
EliottA18-Jun-10 2:33 
GeneralRe: PowerPoint Application [modified] Pin
MsmVc18-Jun-10 2:42
MsmVc18-Jun-10 2:42 
GeneralRe: PowerPoint Application Pin
JR21221-Jun-10 3:36
JR21221-Jun-10 3:36 
Questionnewbie question on updating Access mdb tables Pin
john12617-Jun-10 5:46
john12617-Jun-10 5:46 
I am new to mdb data bases and trying to copy data from a column in one table to a column in another table.

Recently I wrote a short program to correct the data in one table of several mdb files. Below is the code I was using which works fine.
'removes unwanted characters from Optional Info23
Dim OpInfo23_upd As New OleDbCommand
OpInfo23_upd.CommandText = _
    "UPDATE OP_INFO SET OPINFO23 = mid(OPINFO23,'2','8') & mid(OPINFO23,'11','2') WHERE OPINFO23 > ''"
OpInfo23_upd.Connection = conn
OpInfo23_upd.ExecuteNonQuery()
'sets flag character in Optional Info25
Dim OpInfo25_upd As New OleDbCommand
OpInfo25_upd.CommandText = _
    "UPDATE OP_INFO SET OPINFO25 = mid(OPINFO23,'1','1')"
OpInfo25_upd.Connection = conn
OpInfo25_upd.ExecuteNonQuery()

Now I am attempting to add the code to copy the data from the NAME column in the required information table (REQ_INFO) to the OPINFO29 column in the optional information table (OP_INFO). I tried the code below, but it generates an exception. Is it possible to update the table directly from another table?
Dim OpInfo29_upd As New OleDbCommand
OpInfo29_upd.CommandText = _
    "UPDATE OP_INFO SET OPINFO29 = REQ_INFO.NAME WHERE OP_INDEX = REQ_INFO.REQ_INDEX"
OpInfo29_upd.Connection = conn
OpInfo29_upd.ExecuteNonQuery()

QuestionRe: newbie question on updating Access mdb tables Pin
DaveAuld17-Jun-10 6:26
professionalDaveAuld17-Jun-10 6:26 
QuestionRe: newbie question on updating Access mdb tables Pin
john12617-Jun-10 6:36
john12617-Jun-10 6:36 
AnswerRe: newbie question on updating Access mdb tables [modified] PinPopular
AnnieMacD17-Jun-10 7:24
AnnieMacD17-Jun-10 7:24 
GeneralRe: newbie question on updating Access mdb tables Pin
john12617-Jun-10 8:49
john12617-Jun-10 8:49 
GeneralRe: newbie question on updating Access mdb tables Pin
AnnieMacD17-Jun-10 11:26
AnnieMacD17-Jun-10 11:26 
QuestionAdd Combobox to Datagridview at runtime. Pin
Nielvh17-Jun-10 4:35
Nielvh17-Jun-10 4:35 
AnswerRe: Add Combobox to Datagridview at runtime. Pin
dan!sh 17-Jun-10 5:43
professional dan!sh 17-Jun-10 5:43 
GeneralRe: Add Combobox to Datagridview at runtime. Pin
Nielvh18-Jun-10 11:18
Nielvh18-Jun-10 11:18 
QuestionPassing Events Pin
Sonhospa17-Jun-10 3:11
Sonhospa17-Jun-10 3:11 
AnswerRe: Passing Events Pin
EliottA17-Jun-10 3:49
EliottA17-Jun-10 3:49 
NewsRe: Passing Events Pin
Sonhospa17-Jun-10 5:03
Sonhospa17-Jun-10 5:03 
QuestionRe: Passing Events Pin
DaveAuld17-Jun-10 3:58
professionalDaveAuld17-Jun-10 3:58 
NewsRe: Passing Events Pin
Sonhospa17-Jun-10 5:17
Sonhospa17-Jun-10 5:17 
GeneralRe: Passing Events Pin
DaveAuld17-Jun-10 5:53
professionalDaveAuld17-Jun-10 5:53 
GeneralRe: Passing Events Pin
Sonhospa17-Jun-10 6:17
Sonhospa17-Jun-10 6:17 
NewsResolved: Passing Events Pin
Sonhospa17-Jun-10 7:33
Sonhospa17-Jun-10 7:33 
GeneralRe: Resolved: Passing Events Pin
DaveAuld17-Jun-10 7:43
professionalDaveAuld17-Jun-10 7:43 

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.