Connecting Tech Pros Worldwide Help | Site Map

MS Access Database Query

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 03:44 PM
Bj?rn Keil
Guest
 
Posts: n/a
Default MS Access Database Query

Hi,
first of all I have to say I'am new to MS Access, I'm used to database
systems like Oracle or MySQL.
I created a simple database consisting of a single table and a form to
fill in new entrys and search for existing entrys. But the search
function that Access generates as I created the proper button is way
to simple, I need a function that enables to search in several
columns.
I saw a few quite simple examples where this was done by DAO, but this
doesn't work with a .mdb database, does it? (Access allways replies
'Unknown user datatype' once it gets to the line: 'Dim db As
Database')
Now, is it possible to generate a new query for .mdb file from a form,
or at least with CurrentData Object, or not?
And if it is possible with the CurrentData Object is it still a
database request then or would it be faster to search through a text
file?

Regards,
Björn Keil

  #2  
Old November 12th, 2005, 03:45 PM
Phil Stanton
Guest
 
Posts: n/a
Default Re: MS Access Database Query

Assuming you are running AK2 in the modules you need a reference to the
Microsoft DAO 3.6 Object Library

So open any VB module
Goto Tools->References and select the Microsoft DAO 3.6 Object Library

Phil


"Bj?rn Keil" <abgrund@silberdrache.net> wrote in message
news:e8ef0c96.0311210655.79a6192e@posting.google.c om...[color=blue]
> Hi,
> first of all I have to say I'am new to MS Access, I'm used to database
> systems like Oracle or MySQL.
> I created a simple database consisting of a single table and a form to
> fill in new entrys and search for existing entrys. But the search
> function that Access generates as I created the proper button is way
> to simple, I need a function that enables to search in several
> columns.
> I saw a few quite simple examples where this was done by DAO, but this
> doesn't work with a .mdb database, does it? (Access allways replies
> 'Unknown user datatype' once it gets to the line: 'Dim db As
> Database')
> Now, is it possible to generate a new query for .mdb file from a form,
> or at least with CurrentData Object, or not?
> And if it is possible with the CurrentData Object is it still a
> database request then or would it be faster to search through a text
> file?
>
> Regards,
> Björn Keil[/color]


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.