Click here to Skip to main content
15,899,124 members
Home / Discussions / C#
   

C#

 
AnswerRe: urgant: crystal report problem Pin
Nouman Bhatti5-Jul-07 20:22
Nouman Bhatti5-Jul-07 20:22 
GeneralRe: urgant: crystal report problem Pin
rmedo5-Jul-07 23:27
rmedo5-Jul-07 23:27 
QuestionInclude IIS in Windows Service Pin
Roland Bär5-Jul-07 6:02
Roland Bär5-Jul-07 6:02 
AnswerRe: Include IIS in Windows Service Pin
led mike5-Jul-07 6:39
led mike5-Jul-07 6:39 
GeneralRe: Include IIS in Windows Service Pin
Roland Bär5-Jul-07 7:15
Roland Bär5-Jul-07 7:15 
GeneralRe: Include IIS in Windows Service Pin
led mike5-Jul-07 7:44
led mike5-Jul-07 7:44 
QuestionComboBox Data Binding Pin
goldoche5-Jul-07 5:47
goldoche5-Jul-07 5:47 
QuestionUsing code behind to retreive ms access data Pin
markymark825-Jul-07 5:05
markymark825-Jul-07 5:05 
hey all,

I'm tring to pull records from an access database in my c#.net web app.

Doing it using VS2005 in the gui view is fine but I want to set up a connection server side and pull records using a reader like I would with sql, however, I can't seem to find the syntax. I have created the connection string but from there on it seems quite a bit different from an sqlconnection.

I'm after the equivilant of below:

//------
OleDbConnection dbConnect = new OleDbConnection(@"Dsn=MS Access Database;dbq=C:\Program Files\Sage\Accounts\DBFile.mdb;defaultdir=C:\Program Files\Sage\Accounts;driverid=25;fil=MS Access;maxbuffersize=2048;pagetimeout=5;uid=manager");

OleDbCommand dbcommandCom = new OleDbCommand(@"select * from [invoice]");

dbConnect.Open();

OleDbDataReader RecReader = null;

dbConnect.Open();

RecReader.Read();

dbConnect.Close();
//-----------

Can someone please help as I have a short timescale for the project.

Thanks in advance
mark
AnswerRe: Using code behind to retreive ms access data Pin
Christian Graus5-Jul-07 5:21
protectorChristian Graus5-Jul-07 5:21 
AnswerRe: Using code behind to retreive ms access data Pin
Guffa5-Jul-07 6:23
Guffa5-Jul-07 6:23 
GeneralRe: Using code behind to retreive ms access data Pin
markymark825-Jul-07 9:46
markymark825-Jul-07 9:46 
GeneralRe: Using code behind to retreive ms access data Pin
Guffa5-Jul-07 11:09
Guffa5-Jul-07 11:09 
GeneralRe: Using code behind to retreive ms access data Pin
markymark825-Jul-07 11:14
markymark825-Jul-07 11:14 
Questionsend/recieve email + ping to pc in netwerk using a pocket pc Pin
faladrim5-Jul-07 4:21
faladrim5-Jul-07 4:21 
QuestionRetrieve Installation Path Pin
terrible835-Jul-07 4:09
terrible835-Jul-07 4:09 
AnswerRe: Retrieve Installation Path Pin
originSH5-Jul-07 4:13
originSH5-Jul-07 4:13 
AnswerRe: Retrieve Installation Path Pin
led mike5-Jul-07 4:39
led mike5-Jul-07 4:39 
Questionhow to insert data Pin
csanda15-Jul-07 3:59
csanda15-Jul-07 3:59 
AnswerRe: how to insert data Pin
led mike5-Jul-07 4:42
led mike5-Jul-07 4:42 
QuestionRegistry Problems NullException Pin
StevenWalsh5-Jul-07 3:47
StevenWalsh5-Jul-07 3:47 
AnswerRe: Registry Problems NullException Pin
Christian Graus5-Jul-07 3:55
protectorChristian Graus5-Jul-07 3:55 
AnswerRe: Registry Problems NullException Pin
NassosReyzidis5-Jul-07 3:56
NassosReyzidis5-Jul-07 3:56 
GeneralRe: Registry Problems NullException Pin
StevenWalsh5-Jul-07 4:09
StevenWalsh5-Jul-07 4:09 
GeneralRe: Registry Problems NullException Pin
Christian Graus5-Jul-07 4:22
protectorChristian Graus5-Jul-07 4:22 
GeneralRe: Registry Problems NullException Pin
StevenWalsh5-Jul-07 4:42
StevenWalsh5-Jul-07 4:42 

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.