Hi, i have a problem while trying to build my program, i have this code in the Form 1 Load : - private void Form1_Load(object sender, System.EventArgs e)
-
{
-
objOleDbConnection.Open();
-
-
OleDbDataReader objReader = objSelectAccount.ExecuteReader(); <<< Breaks here
-
-
while (objReader.Read())
-
{
-
cmbAccountNumbers.Items.Add(objReader["Account Number"]);
-
}
-
objOleDbConnection.Close();
-
}
-
and shows me this error :"An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in system.data.dll"
the interesting thing is that it throws me the same error in college computers in one campus, and was building fine on other college campus and at home, but now is breaking at home as well.
Any suggestions?
Thank you
7 1521
there might be some problem with data base installation. try using another data base using a small program, just to make sure that its not problem with data base.
PRR 750
Expert 512MB
1. Are you sure your connection string and username password are valid?
2. Make sure your database serve is on?
Do go through Database
Your code doesn't seem to be complete... can you provide more sample code?
"1. Are you sure your connection string and username password are valid?
2. Make sure your database serve is on?
Do go through Database
Your code doesn't seem to be complete... can you provide more sample code? "
the database does not have have a username or password, so i don't think its that, and the database server is on :\
I have also tried to build my the backup of the application which i created over a month ago, and the same problem is happening, so i presume its ether my security settings or the computer itself.. hmm..
fixed it now, so don't worry :).. it was an amateur mistake, even too embarrassing to mention
ha ha ha, its ok Pega, we all do mistake, any way what was the mistake :)
PRR 750
Expert 512MB
its alright ... we all do mistakes.... Please do continue post your queries on Bytes
Basically, I have made my project on my USB drive, so i can take work to college and work there too, and when I created the link between the program and database, the directory was through F: drive, and when it was crashing the name of the USB was U: or G:, but it was still looking for F: drive :\
Rookie mistake
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Jeroen Van Goey |
last post by:
Hi,
I want to put the OMIM databse locally on my computer. I downloaded
the file genemap from ftp://ftp.ncbi.nih.gov/repository/OMIM/ It
contains a list of fields, separated by the '|' character....
|
by: Exit12 |
last post by:
Hi all
I'm new to mysql so easy!
I use PHPMyadmin as a front end to administering my databases
but my simple question is how do I, from the command line (winxp prompt)
drop a certain databse....
|
by: sreenivasan alakappan |
last post by:
Hello,
I want to create a database applciation in C++. I am using VC++
6.0 as the deevelopment environment. When I ever i createa project, it
only allows me to create a form based normal...
|
by: Elham Ghoddousi |
last post by:
I have a problem with my TEMPDB Database.It gets extra size through
importing data into one of my databases in same server.
How can I shrink my TempDB Databse?
Thanks
|
by: xxsodapopxx5 |
last post by:
Hello all, i am having a problem deleting a record from the database, i can get it to delete from the dataset with this code.
Try
...
|
by: chitrapu |
last post by:
hiii everybody,
i have a little code that inserts the data into the databse. but the problem is the insertion should be peroformed only when a button is clicked. i have problems in this because i...
|
by: nittin14 |
last post by:
hello guys,
pls solve my problem
my problem is that
i m retreive data from table but in some column the value is store NULL. i want that insist of NULL it wl display some text in datalist while...
|
by: Bakarre |
last post by:
To display a field from databse and calculate time different
--------------------------------------------------------------------------------
Good day,
i have problem to display a field from...
|
by: tokcy |
last post by:
Hi everyone,
I am new in php and ajax, i am facing the prob while i click on element of first drop down then in second dropdown all element showl come from database.
I mean i have three dropdown 1....
|
by: PhiriM |
last post by:
I am a programmer trying to use access database and forms to build an application.
My problem is how to backup and restore the databse then how i may come up with my own custom menu.
If anyone...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |