Click here to Skip to main content
16,015,166 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionhow shall i design a TSR application Pin
NewtonOfComputers1-May-04 0:56
NewtonOfComputers1-May-04 0:56 
AnswerRe: how shall i design a TSR application Pin
Dave Kreskowiak1-May-04 3:18
mveDave Kreskowiak1-May-04 3:18 
Questionhow shall i send the picture information across the network Pin
NewtonOfComputers1-May-04 0:54
NewtonOfComputers1-May-04 0:54 
Questionhow shall i design Remote Administrtion application Pin
NewtonOfComputers1-May-04 0:51
NewtonOfComputers1-May-04 0:51 
AnswerRe: how shall i design Remote Administrtion application Pin
Dave Kreskowiak1-May-04 3:19
mveDave Kreskowiak1-May-04 3:19 
GeneralRe: how shall i design Remote Administrtion application Pin
NewtonOfComputers2-May-04 22:16
NewtonOfComputers2-May-04 22:16 
GeneralRe: how shall i design Remote Administrtion application Pin
Dave Kreskowiak3-May-04 2:38
mveDave Kreskowiak3-May-04 2:38 
GeneralHelp... limiting rows in MSACCESS for VB Pin
gen2330-Apr-04 23:25
gen2330-Apr-04 23:25 
Hi,

I need help... How can I limit the rows in one field into 1 row only so that whenever I save something using VB, the content of that row would just be replaced by a new one. For example: in a textbox, if I enter a name and click save, the name that I typed would be saved on a database. If I enter a new name, the name that I entered before will just be replaced with a new one.

I used this code and I bind my richtextbox with a data control and it was running ok. But I still would like to ask for suggestions... Thanks...

Public gadocon As adodb.Connection
Public gadorset As adodb.Recordset


Private Sub cmdadd_Click()
rtbox.Locked = False
Set gadocon = New adodb.Connection
Set gadorset = New adodb.Recordset

gadocon.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\gen\Desktop\TRIAL 4 THESIS\transfering form2form code\dbtext.mdb"
gadorset.Open "Table1", gadocon, adOpenKeyset, adLockOptimistic

gadorset.AddNew
gadorset.Fields(0) = Trim(rtbox.Text)
gadorset.Update

End Sub

Private Sub cmdedit_Click()
rtbox.Locked = False

End Sub

Private Sub cmdsave_Click()
Set gadocon = New adodb.Connection
Set gadorset = New adodb.Recordset

gadocon.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\gen\Desktop\TRIAL 4 THESIS\transfering form2form code\dbtext.mdb"
gadorset.Open "Table1", gadocon, adOpenKeyset, adLockOptimistic

gadorset.Fields.Refresh
gadorset.Fields(0) = Trim(rtbox.Text)
gadorset.Update

frmaccept.Show
End Sub

GeneralRe: Help... limiting rows in MSACCESS for VB Pin
Dave Kreskowiak1-May-04 3:14
mveDave Kreskowiak1-May-04 3:14 
GeneralRe: Help... limiting rows in MSACCESS for VB Pin
gen232-May-04 18:06
gen232-May-04 18:06 
GeneralHard Drive search in VB.net Pin
RBCC30-Apr-04 21:59
RBCC30-Apr-04 21:59 
GeneralUnwanted text in a windows event log description Pin
Ray Cassick30-Apr-04 14:33
Ray Cassick30-Apr-04 14:33 
Questionbackward format a date? Pin
hounetdev30-Apr-04 7:23
hounetdev30-Apr-04 7:23 
AnswerRe: backward format a date? Pin
Dave Kreskowiak30-Apr-04 8:34
mveDave Kreskowiak30-Apr-04 8:34 
Generalregister .dll mutiple time Pin
skoizumi2911030-Apr-04 6:47
sussskoizumi2911030-Apr-04 6:47 
GeneralRe: register .dll mutiple time Pin
Dave Kreskowiak30-Apr-04 8:33
mveDave Kreskowiak30-Apr-04 8:33 
GeneralRe: register .dll mutiple time Pin
vancouver7777-May-04 14:29
vancouver7777-May-04 14:29 
Generalfastest way to copy a table to a new table Pin
hounetdev30-Apr-04 5:26
hounetdev30-Apr-04 5:26 
GeneralRe: fastest way to copy a table to a new table Pin
Dave Kreskowiak30-Apr-04 8:29
mveDave Kreskowiak30-Apr-04 8:29 
GeneralRe: fastest way to copy a table to a new table Pin
Randy S30-Apr-04 17:22
Randy S30-Apr-04 17:22 
Generalreplacing color of an image pixel by pixel Pin
Member 41696030-Apr-04 4:37
Member 41696030-Apr-04 4:37 
GeneralRe: replacing color of an image pixel by pixel Pin
Terry O'Nolley30-Apr-04 18:02
Terry O'Nolley30-Apr-04 18:02 
QuestionLoad data from a datgrid into SQL Server table? Pin
Anonymous30-Apr-04 3:03
Anonymous30-Apr-04 3:03 
Generaldisconnected programming environments Pin
Member 104068830-Apr-04 1:26
Member 104068830-Apr-04 1:26 
GeneralRe: disconnected programming environments Pin
Dave Kreskowiak30-Apr-04 2:59
mveDave Kreskowiak30-Apr-04 2:59 

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.