Hi there,
VB 2003 1.1 Access Database, oledb, Windows Application
I've been trying this for 3 days straight now and CANNOT get this to
work, im about to go insane because it is soo simple. All I want to do
is insert a new row !
I have 1 table 'People'
In that table I have "Name" and "LastName" Name as primary Key."
my adapter is called OleDbDataAdapte r1
my connection is called OleDbConnection 1
and I have a dataset called DataSet11
my connection is
"Me.OleDbConnec tion1.Connectio nString = "Jet OLEDB:Global Partial Bulk
Ops=2;Jet OLEDB:Registry Path=;Jet OLEDB:Database L" & _
"ocking Mode=1;Data Source=""C:\Doc uments and
Settings\Pig\De sktop\New Folder\TEST" & _
".mdb"";Jet OLEDB:Engine
Type=5;Provider =""Microsoft.Je t.OLEDB.4.0"";J et OLEDB:Syste" & _
"m database=;Jet OLEDB:SFP=False ;persist security
info=False;Exte nded Properties=" & _
";Mode=Shar e Deny None;Jet OLEDB:Encrypt Database=False; Jet
OLEDB:Create System D" & _
"atabase=False; Jet OLEDB:Don't Copy Locale on Compact=False;J et
OLEDB:Compact Wit" & _
"hout Replica Repair=False;Us er ID=Admin;Jet OLEDB:Global Bulk
Transactions=1" "
if anyone wants that.
On my form I have 2 text boxes
"txtname" and "txtlastnam e"
I also have a button "Button1"
All I want is for someone to put something in those two text boxes,,
press the button and for it to add a new Person with those 2 strings.
So they press the button and it adds a new row to the table, so like
adding a new person.
Can someone just tell me/show me how to do this, I'm having soo much
trouble, since I have asked about 50 people and tried about 50 differnt
ways and nothing works
PLEASE HELP ME.
thanx in advance
VB 2003 1.1 Access Database, oledb, Windows Application
I've been trying this for 3 days straight now and CANNOT get this to
work, im about to go insane because it is soo simple. All I want to do
is insert a new row !
I have 1 table 'People'
In that table I have "Name" and "LastName" Name as primary Key."
my adapter is called OleDbDataAdapte r1
my connection is called OleDbConnection 1
and I have a dataset called DataSet11
my connection is
"Me.OleDbConnec tion1.Connectio nString = "Jet OLEDB:Global Partial Bulk
Ops=2;Jet OLEDB:Registry Path=;Jet OLEDB:Database L" & _
"ocking Mode=1;Data Source=""C:\Doc uments and
Settings\Pig\De sktop\New Folder\TEST" & _
".mdb"";Jet OLEDB:Engine
Type=5;Provider =""Microsoft.Je t.OLEDB.4.0"";J et OLEDB:Syste" & _
"m database=;Jet OLEDB:SFP=False ;persist security
info=False;Exte nded Properties=" & _
";Mode=Shar e Deny None;Jet OLEDB:Encrypt Database=False; Jet
OLEDB:Create System D" & _
"atabase=False; Jet OLEDB:Don't Copy Locale on Compact=False;J et
OLEDB:Compact Wit" & _
"hout Replica Repair=False;Us er ID=Admin;Jet OLEDB:Global Bulk
Transactions=1" "
if anyone wants that.
On my form I have 2 text boxes
"txtname" and "txtlastnam e"
I also have a button "Button1"
All I want is for someone to put something in those two text boxes,,
press the button and for it to add a new Person with those 2 strings.
So they press the button and it adds a new row to the table, so like
adding a new person.
Can someone just tell me/show me how to do this, I'm having soo much
trouble, since I have asked about 50 people and tried about 50 differnt
ways and nothing works
PLEASE HELP ME.
thanx in advance
Comment