A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Second form to navigate to record displayed in first form



 
 
Thread Tools Display Modes
  #1  
Old March 23rd, 2010, 04:22 PM posted to microsoft.public.access.forms
Isabella_Adeline
external usenet poster
 
Posts: 1
Default Second form to navigate to record displayed in first form

I have two forms: Country Information & Documentation Information which are
based on like name tables which have a one (country) to many (documentation
Information) relationship.

I have created a command button on Country Information form to open
Documentation Information form. When it opens, it navigates to the first
record in the database and I want it to navigate to the record I was on when
I pushed the button.

Ie. I'm looking at the Country Information for Mexico and when I push the
button, I want to look at the documentation requirements for Mexico.

I originally based the Documentation Requirements form on a query and tried
using the following to restrict the query:

[Forms]![Country Information]![Country Name]

With no luck.

Any help would be greatly appreciated.
--
Candie
  #2  
Old March 23rd, 2010, 05:06 PM posted to microsoft.public.access.forms
Daryl S[_2_]
external usenet poster
 
Posts: 881
Default Second form to navigate to record displayed in first form

Candie -

If you are adding a filter in the new form, then you need to give the field
name also, like this (assuming the record source for the second form has a
field called [Country Name]:

[Country Name] = [Forms]![Country Information]![Country Name]

--
Daryl S


"Isabella_Adeline" wrote:

I have two forms: Country Information & Documentation Information which are
based on like name tables which have a one (country) to many (documentation
Information) relationship.

I have created a command button on Country Information form to open
Documentation Information form. When it opens, it navigates to the first
record in the database and I want it to navigate to the record I was on when
I pushed the button.

Ie. I'm looking at the Country Information for Mexico and when I push the
button, I want to look at the documentation requirements for Mexico.

I originally based the Documentation Requirements form on a query and tried
using the following to restrict the query:

[Forms]![Country Information]![Country Name]

With no luck.

Any help would be greatly appreciated.
--
Candie

 




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:13 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.