Click here to Skip to main content
15,923,083 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionregister ocx at .net 2003 Pin
SVb.net3-Apr-06 5:55
SVb.net3-Apr-06 5:55 
AnswerRe: register ocx at .net 2003 Pin
FrankyT5-Apr-06 13:42
FrankyT5-Apr-06 13:42 
Questionregister ocx at .net 2003 Pin
SVb.net3-Apr-06 5:54
SVb.net3-Apr-06 5:54 
Questionregister ocx at .net 2003 Pin
SVb.net3-Apr-06 5:52
SVb.net3-Apr-06 5:52 
Questionocx Pin
SVb.net3-Apr-06 5:11
SVb.net3-Apr-06 5:11 
QuestionHow do I capture my network userid and display it on a form? Pin
Rashar3-Apr-06 4:03
Rashar3-Apr-06 4:03 
AnswerRe: How do I capture my network userid and display it on a form? Pin
KreativeKai3-Apr-06 5:27
professionalKreativeKai3-Apr-06 5:27 
GeneralRe: How do I capture my network userid and display it on a form? Pin
Rashar3-Apr-06 5:52
Rashar3-Apr-06 5:52 
GeneralRe: How do I capture my network userid and display it on a form? Pin
KreativeKai4-Apr-06 8:28
professionalKreativeKai4-Apr-06 8:28 
GeneralRe: How do I capture my network userid and display it on a form? Pin
FrankyT5-Apr-06 13:48
FrankyT5-Apr-06 13:48 
GeneralRe: How do I capture my network userid and display it on a form? Pin
KreativeKai6-Apr-06 4:19
professionalKreativeKai6-Apr-06 4:19 
QuestionPlease how to write parameter to another application Pin
Mr kilany3-Apr-06 3:07
Mr kilany3-Apr-06 3:07 
AnswerRe: Please how to write parameter to another application Pin
CWIZO3-Apr-06 3:28
CWIZO3-Apr-06 3:28 
QuestionPrinting a Form not using image in .NET? Pin
MohammadAmiry3-Apr-06 1:40
MohammadAmiry3-Apr-06 1:40 
QuestionListviewItem.Subitem Pin
wilde2-Apr-06 23:51
wilde2-Apr-06 23:51 
AnswerRe: ListviewItem.Subitem Pin
Chatura Dilan3-Apr-06 15:00
Chatura Dilan3-Apr-06 15:00 
Questiondirectx 9 SDK Pin
Pascale832-Apr-06 23:35
Pascale832-Apr-06 23:35 
AnswerRe: directx 9 SDK Pin
Danilo Castro de Souza18-May-11 5:58
Danilo Castro de Souza18-May-11 5:58 
Questionproject of software of an automobile dealer's shop or showroom Pin
SwatiPathania2-Apr-06 21:32
SwatiPathania2-Apr-06 21:32 
AnswerRe: project of software of an automobile dealer's shop or showroom Pin
darkelv3-Apr-06 1:53
darkelv3-Apr-06 1:53 
Questionsetting rs232 pin using vb 6.0 Pin
hackerz832-Apr-06 20:59
hackerz832-Apr-06 20:59 
QuestionDevelop Webcast Software in .NET Pin
DGtech2-Apr-06 20:06
DGtech2-Apr-06 20:06 
QuestionUnicode characters Pin
sp_ranjan2-Apr-06 19:31
sp_ranjan2-Apr-06 19:31 
QuestionRecordset Pin
Sweet Virgo2-Apr-06 18:31
Sweet Virgo2-Apr-06 18:31 
hi friends i am woking on MS Access forms with MS Access Database. i want to add text boxes' data into table on click event of a buton.
i am using buttons and want to use recordset object. i don't know how to open recordset and how to insert data in table from this button.
i am using this code it gives syntax error ont insert statement but i have checked my statement is correct.
___________________________________
Option Compare Database
Dim rst As ADODB.Recordset
===========================
Private Sub cmdAdd_Click()
Dim Did As Integer
'dim Dname as

'Set db = Humaintarian.mdb'
'Set rst = db.OpenRecordset("tbl_Dept") '.OpenRecordset("tbl_Dept") 'tbl_Dept is the table
'rst.AddNew
txtDeptId.SetFocus 'We have to set focus for each field
MsgBox ("txtDeptId=" & txtDeptId.Text) 'Just see what we got
'Did = txtDeptId.Text
'rst!Id = txtDeptId.Text
txtDeptName.SetFocus 'We have to set focus for each field
MsgBox ("txtDeptName=" & txtDeptName.Text) 'Just see what we got
'rst!Name = txtDeptId.Text
txtDeptDescr.SetFocus
MsgBox ("TxtDeptDescr=" & txtDeptDescr.Text)
'rst!Description = txtDeptDescr.Text
'rst.Update
'rst.Close
INSERT INTO tbl_Sectors(Id,Name,Description) VALUES(txtDeptId.Text,txtDeptName.Text,txtDeptDescr.Text)
End Sub
__________________________________
friends plz help me i am stucked
regards


Farooq Azam
Questionu?Open Recordset Pin
Sweet Virgo2-Apr-06 18:25
Sweet Virgo2-Apr-06 18:25 

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.