Sign Up |  Live StatsLive Stats    Articles 35,345| Comments 159,788| Members 17,820, Newest waheguruhelpme| Online 219
Home Contact
 (Forgotten?): 
    Sikhism

   
                                                                     Your Banner Here!    

COM and Access program

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 400 USD, Received: 35 USD (9%)
Please Donate...
Related Topics...
Thread Thread Starter Forum Replies Last Post
Using Data Access Pages wizard closes Access program Joshcat99 Information Technology 1 28-Jul-2006 08:04 AM
Access database custom program HELP! news.microsoft.com Information Technology 1 18-Nov-2005 13:59 PM
Is there any template (Access) about car manteinance program? Alejandro Chapulin Ameglio Information Technology 0 16-Nov-2005 14:50 PM
Can I create a master access program that calls other access prog. sastr Information Technology 4 04-Nov-2005 15:20 PM


Tags
com, access, program
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:05 AM
adammet04@gmail.com's Avatar adammet04@gmail.com
Guest
 
Posts: n/a
   
   
COM and Access program

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
Wondering if anyone can shed light on how i can program a COM object to
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/9711-com-and-access-program.html
work with Microsoft access?

i believe id need to create it in VB, then have it call my acces
program, one of the functions within the program
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9711

Never done any COM programming before hence my noobish question.

Is this correct?

Thanks


*








 
Do share your immediate thoughts or reactions on this issue? We value your views! Login Now! or Sign Up Today! to share your views with us.. Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-Jul-2006, 08:05 AM
Stephen Lebans's Avatar Stephen Lebans
Guest
 
Posts: n/a
   
   
Re: COM and Access program

What functionality are you trying to create with the ActiveX control?
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9711

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


wrote in message
news:1147746720.017879.166470@i39g2000cwa.googlegr oups.com...
> Wondering if anyone can shed light on how i can program a COM object to
> work with Microsoft access?
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9711
>
> i believe id need to create it in VB, then have it call my acces
> program, one of the functions within the program
>
> Never done any COM programming before hence my noobish question.
>
> Is this correct?
>
> Thanks
>



Reply With Quote
  #3 (permalink)  
Old 28-Jul-2006, 08:05 AM
ads's Avatar ads
Guest
 
Posts: n/a
   
   
Re: COM and Access program

Basically its building an API for the access program we have.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9711

so another program wants to be able to call our program pass a few
parameters and fire off a function within our product.

Reply With Quote
  #4 (permalink)  
Old 28-Jul-2006, 08:05 AM
Albert D.Kallal's Avatar Albert D.Kallal
Guest
 
Posts: n/a
   
   
Re: COM and Access program

I would actually suggest you put that code in the other program!!
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9711

Remember, you can open, read, and write mdb (access) files on a any windows
XP computer, and don't even have to install ms-access.

So, every copy of windows ships with JET, and thus you don't have to use
ms-access to read, or write, or in fact run code...

Unless that code is going to use a specific feature of ms-access, then I
would suggest not using ms-access as a com (automation) object...

You likely would be better off to use a DAO library ref, and then
read/write,
or execute some sql statements.

Further, when you do automate ms-access, and all kinds of things such as
start up code, forms running etc can occur, and for most part, a access
applications does run a lot of things in startup..and, if you launch
ms-access
as a com object, the same thing occurs.

Anyway, the code to launch ms-access, and run some code (a sub called
timeupdate)
in a standard code module from a windows batch file (script) would be:

dim accessApp

msgbox "Click ok to run batch job",64

set accessApp = createObject("Access.Application")

accessApp.OpenCurrentDataBase("C:\Documents and Settings\Albert\My
Documents\Access\ScriptExample\MultiSelect.mdb")

accessApp.Run "TimeUpDate"

accessApp.Quit

set accessApp = nothing

msgbox "Job complete", 64

You can adopt the createObject for any language from c++, vb6, or even
another copy of ms-access running...

However, as mentioned, when the above open database occurs...startup code,
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9711
forms that load on startup etc. will run. And, since c++, VB, or any windows
programming environment can read/write the mdb file direct, I don't think
using ms-access as a automation object is likely needed here....

Further, if you do automate ms-access, likely you would want to build a mdb
*just* for that automation, since as mentioned, you don't want all of the
application stuff you setup to run on startup to run in this case...

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal@msn.com
http://www.members.shaw.ca/AlbertKallal



Reply With Quote
  #5 (permalink)  
Old 28-Jul-2006, 08:05 AM
ads's Avatar ads
Guest
 
Posts: n/a
   
   
Re: COM and Access program

Thanks for the information..
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9711

hmm not sure if i completely understand you, but you think that the
other system should use the above from jet to do what they need to do
and we provide them with the function calls required...

-- They require our program to start up and return the information in
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9711
our program, not a return of info to their program.
will look into it further when i come back in the office but thanks
heaps for the prompt responses...

ads

Reply With Quote
  #6 (permalink)  
Old 28-Jul-2006, 08:05 AM
Albert D.Kallal's Avatar Albert D.Kallal
Guest
 
Posts: n/a
   
   
Re: COM and Access program

"ads" wrote in message
news:1147764670.265913.292340@j73g2000cwa.googlegr oups.com...
> Thanks for the information..
>
> hmm not sure if i completely understand you, but you think that the
> other system should use the above from jet to do what they need to do
> and we provide them with the function calls required...


Yes. I guess you have to decide "where" this code is going to be....

> -- They require our program to start up and return the information in
> our program, not a return of info to their program.


Hum, the above is not clear...

I assume they want their application to be able to read, or use some data
from *your* application?
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9711

If yes, then just have their application open the mdb file. I am not sure
why running code *inside* of
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9711
the mdb is needed here?


--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal@msn.com
http://www.members.shaw.ca/AlbertKallal


Reply With Quote
  #7 (permalink)  
Old 28-Jul-2006, 08:07 AM
ads's Avatar ads
Guest
 
Posts: n/a
   
   
Re: COM and Access program

Ok,

to clarify

they have a CRM system

we have a permit management system,

they can already see some of our data through their program using
views.

but if the user wants to see more information about a specific record,
then the aim is to launch our program and search to that specific
record, thusly displaying all the extra pertinent information in our
system..

hopefully this makes more sense ??

sorry for not being very clear...one of those cases, I know what im
talking about but i forget maybe you dont
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9711
apologies.

Ads

Reply With Quote
  #8 (permalink)  
Old 28-Jul-2006, 08:07 AM
Albert D.Kallal's Avatar Albert D.Kallal
Guest
 
Posts: n/a
   
   
Re: COM and Access program

> but if the user wants to see more information about a specific record,
> then the aim is to launch our program and search to that specific
> record, thusly displaying all the extra pertinent information in our
> system..
>
> hopefully this makes more sense ??


Ok...very good.

Sure, if the people writing that CRM system want to open a particular form
in ms-access, and send that form to a particular record, then automation is
a good choice in this case.....

So, in the above, we would assume that your application is running already.
And, that application should not be "stuck" in some model, or dialog prompt
form. At this point, you could then have the CRM developers write some code
that attached to the application, and passes some record id number to a
routine in the access appcation that would then open a form, or perhaps
moving a existing form to the correct record.

Note that above can be tricky, since what happens if the ms-access is opened
to a customer record already, and some required field is not yet filled
out...and then the CRM system tries to move the form to a new/different
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9711
record. So, some of these things will take some thought on your part.

Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9711
However, without question, you might want to build a set of routines in a
public module that does a basic set of features that the developers of the
CRM system might need

eg: - a routine to accept a customer id of some type..and then open a form
in ms-access to display/edit that form

- a routine to save/close the current forms data..and move to another
record.

- a few routines to printout a particular report.

So, sure...you can sit down with the developers of the CRM system, and come
up with a set of commands (subs you define) that they can call/run from
their code...


--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal@msn.com
http://www.members.shaw.ca/AlbertKallal


Reply With Quote
  #9 (permalink)  
Old 28-Jul-2006, 08:07 AM
aaron.kempf@gmail.com's Avatar aaron.kempf@gmail.com
Guest
 
Posts: n/a
   
   
Re: COM and Access program

  Donate Today!  
what the hell chump

you're scared of COM but you're reccomending that they use MDB and DAO?

throw away all DAO and MDB everywhere; rewrite **** in SQL Server.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9711

Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
Display Modes

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 On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Gurbani Jukebox
Listen to Gurbani while surfing SPN!
» Active Discussions
sikhism Who is "Mohan"?
Today 06:52 AM
21 Replies, 319 Views
sikhism need urgent advice.......
Today 06:46 AM
6 Replies, 72 Views
sikhism ਨਾਮਾ
Today 06:37 AM
2 Replies, 45 Views
sikhism Sikh Diamonds Video...
Today 04:23 AM
6 Replies, 112 Views
sikhism Are Creator and Creation...
Today 01:30 AM
44 Replies, 2,833 Views
sikhism Herman Hesse,...
Today 00:54 AM
13 Replies, 225 Views
sikhism On a Scale of Most...
Yesterday 21:42 PM
30 Replies, 1,277 Views
sikhism I became victim by...
Yesterday 19:50 PM
0 Replies, 39 Views
sikhism How important is Matha...
By Ishna
Yesterday 19:05 PM
58 Replies, 1,026 Views
sikhism Sikh Books downloads
Yesterday 15:39 PM
2 Replies, 62 Views
sikhism Salok Sheikh Farid ji...
Yesterday 09:35 AM
0 Replies, 43 Views
sikhism In Punjab, three farmers...
Yesterday 05:36 AM
0 Replies, 45 Views
sikhism Supernatural Sikhs, what...
Yesterday 03:45 AM
19 Replies, 408 Views
sikhism Sukhmani Sahib Astpadi...
26-May-2012 22:57 PM
0 Replies, 46 Views
Do You Think You Are...
26-May-2012 09:59 AM
94 Replies, 8,258 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.2

All times are GMT +6.5. The time now is 07:41 AM.
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.50539 seconds with 30 queries