Click here to Skip to main content
15,895,256 members
Home / Discussions / Database
   

Database

 
GeneralRe: E-Mail Access Table Data [modified] Pin
GuyThiebaut2-Mar-08 23:47
professionalGuyThiebaut2-Mar-08 23:47 
Generaldataset, add a column that stores logarithm of another column Pin
Amanjot2-Mar-08 11:12
Amanjot2-Mar-08 11:12 
QuestionConnectionString Problem (Urgent HELP required) Pin
Sadaf Naeem1-Mar-08 20:08
Sadaf Naeem1-Mar-08 20:08 
GeneralRe: ConnectionString Problem (Urgent HELP required) Pin
pmarfleet1-Mar-08 23:00
pmarfleet1-Mar-08 23:00 
GeneralRe: ConnectionString Problem (Urgent HELP required) Pin
Sadaf Naeem1-Mar-08 23:59
Sadaf Naeem1-Mar-08 23:59 
GeneralRe: ConnectionString Problem (Urgent HELP required) Pin
pmarfleet2-Mar-08 4:08
pmarfleet2-Mar-08 4:08 
GeneralRe: ConnectionString Problem (Urgent HELP required) Pin
Sadaf Naeem2-Mar-08 16:48
Sadaf Naeem2-Mar-08 16:48 
GeneralRe: ConnectionString Problem (Urgent HELP required) Pin
Sadaf Naeem2-Mar-08 18:02
Sadaf Naeem2-Mar-08 18:02 
thanks 4 ur kind help

I tried it but not there is a 2nd problem which is as follows:

my code is:

string currentDirectory = System.Environment.CurrentDirectory;
OleDbConnection con = new OleDbConnection();

con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source='" + currentDirectory + "\\dbLetters.mdb';Persist Security Info=False";

this.oleDbInsertCommand1.Connection = con;


//other parameters

this.oleDbInsertCommand1.Parameters["Subject"].Value = this.txtSubject.Text;
this.oleDbInsertCommand1.Parameters["RefNumber"].Value = this.txtRefNumber.Text;
this.oleDbInsertCommand1.Parameters["RefDate"].Value = this.dateTimePicker1.Value;
this.oleDbInsertCommand1.Parameters["OutwardNumber"].Value = this.txtOutwardNumber.Text;
this.oleDbInsertCommand1.Parameters["OutwardDate"].Value = this.dateTimePicker2.Value;
this.oleDbInsertCommand1.Parameters["FileNumber"].Value = this.txtFileNumber.Text;
this.oleDbInsertCommand1.Parameters["Remarks"].Value = this.txtRemarks.Text;

con.Open();
this.oleDbInsertCommand1.ExecuteNonQuery();
con.Close();

-------------------------------

Upon execution , it is not creating a new record but always updating the last record and I have no clue to why is this happening. Frown | :(

Plz guide me . I shall be really thankful 2 u

Sadaf

GeneralRe: ConnectionString Problem (Urgent HELP required) Pin
Sadaf Naeem2-Mar-08 18:04
Sadaf Naeem2-Mar-08 18:04 
GeneralRe: ConnectionString Problem (Urgent HELP required) Pin
Sadaf Naeem2-Mar-08 20:30
Sadaf Naeem2-Mar-08 20:30 
GeneralRe: ConnectionString Problem (Urgent HELP required) Pin
pmarfleet2-Mar-08 22:04
pmarfleet2-Mar-08 22:04 
GeneralRe: ConnectionString Problem (Urgent HELP required) Pin
Khawar Abbas13-Mar-08 2:28
Khawar Abbas13-Mar-08 2:28 
Questionhow to store a *.jpg file in oracle? Pin
sejal_tank1-Mar-08 8:02
sejal_tank1-Mar-08 8:02 
GeneralRe: how to store a *.jpg file in oracle? Pin
followait1-Mar-08 8:18
followait1-Mar-08 8:18 
GeneralRe: how to store a *.jpg file in oracle? Pin
Paul Conrad1-Mar-08 12:32
professionalPaul Conrad1-Mar-08 12:32 
GeneralRe: how to store a *.jpg file in oracle? Pin
followait1-Mar-08 16:48
followait1-Mar-08 16:48 
QuestionHow to optimize the SQL command ... Pin
followait1-Mar-08 7:53
followait1-Mar-08 7:53 
AnswerRe: How to optimize the SQL command ... Pin
Paul Conrad1-Mar-08 12:32
professionalPaul Conrad1-Mar-08 12:32 
GeneralRe: How to optimize the SQL command ... Pin
followait1-Mar-08 16:48
followait1-Mar-08 16:48 
GeneralRe: How to optimize the SQL command ... Pin
Paul Conrad2-Mar-08 5:17
professionalPaul Conrad2-Mar-08 5:17 
GeneralRe: How to optimize the SQL command ... Pin
followait2-Mar-08 5:44
followait2-Mar-08 5:44 
GeneralRe: How to optimize the SQL command ... Pin
pmarfleet2-Mar-08 6:08
pmarfleet2-Mar-08 6:08 
AnswerRe: How to optimize the SQL command ... Pin
andyharman2-Mar-08 23:36
professionalandyharman2-Mar-08 23:36 
GeneralRe: How to optimize the SQL command ... Pin
followait3-Mar-08 4:19
followait3-Mar-08 4:19 
GeneralRe: How to optimize the SQL command ... Pin
andyharman3-Mar-08 8:48
professionalandyharman3-Mar-08 8:48 

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.