Sign Up |  Live StatsLive Stats    Articles 35,345| Comments 159,792| Members 17,821, Newest cdotkhn| Online 268
Home Contact
 (Forgotten?): 
    Sikhism

   
                                                                     Your Banner Here!    

Sikh Philosophy Network » Sikh Philosophy Network » Current Affairs » Information Technology » Call 2nd DB and open form to specific record

Call 2nd DB and open form to specific record

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
Open form to record question default105 Information Technology 1 28-Jul-2006 08:32 AM
Open combo box to specific record Economics Information Technology 4 28-Jul-2006 08:31 AM
Open subform to a specific record fabianjones@gmail.com Information Technology 0 28-Jul-2006 08:17 AM
RE: print a specific record Ofer Cohen Information Technology 0 28-Jul-2006 07:59 AM
open an Employee record (in FORM View) using a drop-down menu of n Walter Mills Information Technology 1 13-Nov-2005 17:32 PM


Tags
2nd, call, form, open, record, specific
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:02 AM
NMThoman's Avatar NMThoman
Guest
 
Posts: n/a
   
   
Call 2nd DB and open form to specific record

  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
I have two calculation databases. When I am in database A, I need to open
database B. Done that, working well. I then need to set the form in
database B to the same record (keyed off of SSN) as database A. Tried any
number of things, not getting it.

Any suggestions?
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/9467-call-2nd-db-open-form-specific.html

*








 
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:02 AM
KARL DEWEY's Avatar KARL DEWEY
Guest
 
Posts: n/a
   
   
RE: Call 2nd DB and open form to specific record

Do not use separate databases but separate tables and forms. Have query used
as record source for second form to use data from first form text box for
criteria like this --
[Forms]![YourFirstForm]![TextBoxWithSSN]
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9467

"NMThoman" wrote:

> I have two calculation databases. When I am in database A, I need to open
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9467
> database B. Done that, working well. I then need to set the form in
> database B to the same record (keyed off of SSN) as database A. Tried any
> number of things, not getting it.
>
> Any suggestions?

Reply With Quote
  #3 (permalink)  
Old 28-Jul-2006, 08:02 AM
Dirk Goldgar's Avatar Dirk Goldgar
Guest
 
Posts: n/a
   
   
Re: Call 2nd DB and open form to specific record

"NMThoman" wrote in message
news:891DD028-5C8A-4A3B-82BC-A30DB8F43902@microsoft.com
> I have two calculation databases. When I am in database A, I need to
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9467
> open database B. Done that, working well. I then need to set the
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9467
> form in database B to the same record (keyed off of SSN) as database
> A. Tried any number of things, not getting it.
>
> Any suggestions?


I'm curious about why you would need to do this. However, you should be
able to automate a second instance of Access, using code along these
lines:

'----- start of "air code" -----
Dim appOther As Access.Application

Set appOther = New Access.Application

appOther.OpenCurrentDatabase "C:\Path\To\YourDB.mdb"

appOther.DoCmd.OpenForm "frmYourForm", _
WhereCondition:="SSN='" & Me.SSN & "'"

Set appOther = Nothing
'----- end of "air code" -----

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)


Reply With Quote
  #4 (permalink)  
Old 28-Jul-2006, 08:03 AM
NMThoman's Avatar NMThoman
Guest
 
Posts: n/a
   
   
RE: Call 2nd DB and open form to specific record

Thanks for the input. I don't have a choice. These are not new db's that I
am setting up. They are existing and I have to work within the confines of
what already exists.

Thanks again,
Nichole

"KARL DEWEY" wrote:

> Do not use separate databases but separate tables and forms. Have query used
> as record source for second form to use data from first form text box for
> criteria like this --
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9467
> [Forms]![YourFirstForm]![TextBoxWithSSN]
>
> "NMThoman" wrote:
>
> > I have two calculation databases. When I am in database A, I need to open
> > database B. Done that, working well. I then need to set the form in
> > database B to the same record (keyed off of SSN) as database A. Tried any
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9467
> > number of things, not getting it.
> >
> > Any suggestions?

Reply With Quote
  #5 (permalink)  
Old 28-Jul-2006, 08:03 AM
NMThoman's Avatar NMThoman
Guest
 
Posts: n/a
   
   
Re: Call 2nd DB and open form to specific record

  Donate Today!  
First db has a pension calculation based on a persons benefit when they reach
age 65. The benefit is based on how many years of service a participant has
earned. The second db houses all the service history for the participant. I
didn't set it up this way, just dealing with what already exists.

Both db's are huge with 5,000+ lines of code. Can't put them together very
easily. Each performs many, many calculations - especially the service.
It's not just Date of Hire through Date of Term. It is based on each
position, during each time period and what happens in the next time period
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9467
can affect how previous time periods are calculated. Very confusing, trust
me.

If a user makes a change in the first db, they need to be able to go back to
the service db and recalculate everything to ensure that all figures are the
most accurate. The users don't want to have to navigate to the second db to
open it and then recalc. I am tasked with trying to find a way to
automatically open the second db from within the first (which I have done
very successfully), then navigate to the correct record, so the recalc can be
done, then close the second db and come back to the first.

I had already used the OpenCurrentDB command, but the second db has an auto
open command that opens the db to the first record in a table. I have made
three attempts at navigating to the correct record.

First attempt was the openform, (I had used a different form of SSN=SSN).
Didn't work.

Second attempt was to attempt a DoCmd.FindRecord command, which gives me no
errors, but doesn't navigate to the correct record. Here is the command that
I am using: svcmacro.DoCmd.FindRecord svcmacro.Forms![frmService].SSN =
Me.SSN. I have tried a variety of wording on this phrase, none work and
provide a variety of errors.

Third attempt was to use your command with the wherecondition. Didn't work,
the second db auto opens the form on db open so I added a docmd.close (with
and without acsaveyes and acsaveno) to close the form first (which does close
the form), then tried to open it using your command, but I get the following
error: THE OPENFORM ACTION WAS CANCELED.

Any more ideas?

Thanks,
Nichole


"Dirk Goldgar" wrote:

> "NMThoman" wrote in message
> news:891DD028-5C8A-4A3B-82BC-A30DB8F43902@microsoft.com
> > I have two calculation databases. When I am in database A, I need to
> > open database B. Done that, working well. I then need to set the
> > form in database B to the same record (keyed off of SSN) as database
> > A. Tried any number of things, not getting it.
> >
> > Any suggestions?

>
> I'm curious about why you would need to do this. However, you should be
> able to automate a second instance of Access, using code along these
> lines:
>
> '----- start of "air code" -----
> Dim appOther As Access.Application
>
> Set appOther = New Access.Application
>
> appOther.OpenCurrentDatabase "C:\Path\To\YourDB.mdb"
>
> appOther.DoCmd.OpenForm "frmYourForm", _
> WhereCondition:="SSN='" & Me.SSN & "'"
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9467
>
> Set appOther = Nothing
> '----- end of "air code" -----
>
> --
> Dirk Goldgar, MS Access MVP
> www.datagnostics.com
>
> (please reply to the newsgroup)
>
>
>

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 need urgent advice.......
Today 10:41 AM
8 Replies, 87 Views
sikhism Who is "Mohan"?
Today 08:46 AM
22 Replies, 348 Views
sikhism How important is Matha...
Today 08:12 AM
59 Replies, 1,041 Views
sikhism ਨਾਮਾ
Today 06:37 AM
2 Replies, 53 Views
sikhism Sikh Diamonds Video...
Today 04:23 AM
6 Replies, 120 Views
sikhism Are Creator and Creation...
Today 01:30 AM
44 Replies, 2,837 Views
sikhism Herman Hesse,...
Today 00:54 AM
13 Replies, 230 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, 46 Views
sikhism Sikh Books downloads
Yesterday 15:39 PM
2 Replies, 66 Views
sikhism Salok Sheikh Farid ji...
Yesterday 09:35 AM
0 Replies, 47 Views
sikhism In Punjab, three farmers...
Yesterday 05:36 AM
0 Replies, 49 Views
sikhism Supernatural Sikhs, what...
Yesterday 03:45 AM
19 Replies, 416 Views
sikhism Sukhmani Sahib Astpadi...
26-May-2012 22:57 PM
0 Replies, 51 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 10:54 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.44019 seconds with 30 queries