Welcome to dbFreaks.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Problem with access runtime...

 
   Database Help (Home) -> Visual Basic -> DAO RSS
Next:  datetime column display  
Author Message
Weby

External


Since: Oct 01, 2003
Posts: 1



(Msg. 1) Posted: Wed Oct 08, 2003 2:43 pm
Post subject: Problem with access runtime...
Archived from groups: microsoft>public>vb>database>dao (more info?)

Hi,

Got problem with runtime access. When i launch access for the first time, it
works ok. But if i need to open a new report in a second instance of access,
it tries to
open the database in the first access, not in the second.

And i can't getobject on access.application using the runtime access, i must
use the shell() command to launch access first, and then do a
getobject(dbname).

It seems that my problem is that getobject find only the first window of
access, not the second. As the shell command returns a double with the pid
process number in it, is there any way than i can do something like :

set x = getobject(PIDNumberOfAccess) ...

Maybe using hwnd property or something like that, PLEASE HELP !

Thx

 >> Stay informed about: Problem with access runtime... 
Back to top
Login to vote
david epsom dot co

External


Since: Sep 11, 2003
Posts: 87



(Msg. 2) Posted: Thu Oct 09, 2003 8:57 pm
Post subject: Re: Problem with access runtime... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

 > And i can't getobject on access.application using the runtime access,

No, but can't you do
set obj = GetObject("report.mdb")

 > process number in it, is there any way than i can do something like :

I think the two easiest other methods are 1) You can de-register the
existing object. 2) You can change the window title of the existing
object, then use DDE to control the second object. DDE uses the
window title rather than the object ID to identify the object.

(david)

"Weby" <webpro DeleteThis @netforspeed.com> wrote in message
news:3f83dc30$0$2793$626a54ce@news.free.fr...
 > Hi,
 >
 > Got problem with runtime access. When i launch access for the first time,
it
 > works ok. But if i need to open a new report in a second instance of
access,
 > it tries to
 > open the database in the first access, not in the second.
 >
 > And i can't getobject on access.application using the runtime access, i
must
 > use the shell() command to launch access first, and then do a
 > getobject(dbname).
 >
 > It seems that my problem is that getobject find only the first window of
 > access, not the second. As the shell command returns a double with the pid
 > process number in it, is there any way than i can do something like :
 >
 > set x = getobject(PIDNumberOfAccess) ...
 >
 > Maybe using hwnd property or something like that, PLEASE HELP !
 >
 > Thx
 >
 >
 ><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Problem with access runtime... 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Problem with DAO (Import from Excel to Access)! :( - Hi, I am novice and I have problem. I need import some data with Excel file to Access. Problem introduces as follows: In Excel(first sheet) i have data: "TYTUL" - column "A" "NAZWISKO" - column "B" "IMIE&quot...

problem setting "RecordSource" in Office Access 2007 ... - I have a form in Office Access 2007, the "RecordSource" property of which I;m trying to set. But first, I some background: have a push button control at the top of each column in my "overview" form that, when pressed, is supposed to ...

Error after converting from Access 97 to Access 2002-2003 .. - Hello, I convert my Access 97 Database to Access 2002-2003, because I’m now using WinXP. And now when I run my VB program, I get Runtime error '3343' - Unrecognized database format. I'm using DAO350.DLL. Do I have to change to another DLL? Thanks. ....

VB6 Access 2000 : Error 3085 undefined function, works wh.. - I've been using VB6 with DAO 3.6 and an Access 2000 format database fine for a few years. I recently added a module function that one of the Access queries uses. It is only called from with the Access query. When I try to set the first parameter from....

Password problem - Hey, I've been using ADO for a few years now and now I need to simply open an access DB using DAO3.6 which has is password protected. set dbtemp = opendatabase("MyDB.MDB",False,False," ;pwd=mypass") I get an error about "canno...
   Database Help (Home) -> Visual Basic -> DAO All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]