473,468 Members | 1,314 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

database variables problem

When I tried to declare object variables below in Access, the compiler
couldn't find its type. It showed me a compile error: user-defined
type not defined.

Sub aTest()
' Declare variables.
Dim dbs As Database
End Sub

I think perhaps I lost a DLL file or the compile couldn't find the
location of the file. But I don't know how to fix it. The Access
version is 2000.

Thank you in advance.

Dec 9 '05 #1
2 1243
On 8 Dec 2005 17:44:19 -0800, "Sunnyrain" <so******@hotmail.com>
wrote:

Try this:
Code window > Tools > References
Check Microsoft DAO 3.6

-Tom.

When I tried to declare object variables below in Access, the compiler
couldn't find its type. It showed me a compile error: user-defined
type not defined.

Sub aTest()
' Declare variables.
Dim dbs As Database
End Sub

I think perhaps I lost a DLL file or the compile couldn't find the
location of the file. But I don't know how to fix it. The Access
version is 2000.

Thank you in advance.


Dec 9 '05 #2
Thank you Tom. It's working now after I selected DAO 3.6 in that
opition.

Dec 10 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jack | last post by:
Hi, I have a checkbox the value which goes to a database via a asp page that builds the sql string. In the front end asp page, the checkbox code is written as follows: <i><input...
1
by: Johan | last post by:
Hi, The problem is : You have a class A with one or more data variables. You want to store the data variables in a database for example MySQL. Also you do not want to have SQL code in your...
1
by: Erica | last post by:
Hi, I have searched everywhere, and I can't seem to find the answer to my problem. I am trying to write a very simple piece of ASP code to insert a record into a field in a database. Ultimately...
0
by: cdginc | last post by:
Hello, I am trying to implement a sales cart application that uses VBScript and writes the data to an Access database. This is a prepackage software that I am trying to customize for my needs. ...
14
by: tshad | last post by:
I have people telling me that I should set up objects for my tables, but I am finding the Null problem makes that difficult. It isn't a big problem if you are not updating the table, but if you...
2
by: altergothen | last post by:
Hi there I am a newbie to ASP.Net - Please Help! I am trying to insert the values of my variables into a database. If I try the following it works perfectly: string insertQuery = "INSERT into...
6
by: c676228 | last post by:
Hi everyone, I never used global.asa. I am thinking of load some data in application_onstart which is read only from database(I mean the data will never be changed in any asp pages of the...
9
by: Jerim79 | last post by:
I am no PHP programmer. At my current job I made it known that I was no PHP programmer during the interview. Still they have given me a script to write with the understanding that it will take me a...
1
by: LondonCalling | last post by:
Hi, can someone point me to general rules for defining variables on a code library database. I'm setting up my first library database and trying to transfer code from two applications into it. ...
39
by: alex | last post by:
I've converted a latin1 database I have to utf8. The process has been: # mysqldump -u root -p --default-character-set=latin1 -c --insert-ignore --skip-set-charset mydb mydb.sql # iconv -f...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
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,...
0
jinu1996
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.