Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / January 2005

Tip: Looking for answers? Try searching our database.

Forms Sync

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tiago Patrício - 03 Jan 2005 14:15 GMT
Hi everybody!

I'm a newbie on programing and I'm having a little dificulty on a database
I'm trying to develop on my work!

I have two forms, lets say frmA and frmB! Both are linked to two queries.
frmA is a list of names and id(index) where country = x. Then I have frmB
where I put more detail about the name which is double clicked! I've done a
macro where it opens the form first, second I've tried to Setvalue of frmBid
to the one equal to frmA! But I can't!

I'm sure there is an easy way to do such a simple thing but, being a newbie
I'm probably just doing something stupid!

Any help?

Best Regards to all
Sandra Daigle - 03 Jan 2005 16:28 GMT
Are you trying to go to an existing record or start a new one?

To go to an existing record you dont want to set the value of frmBid you
want to search on it - the easiest way is to use the WhereCondition
parameter of docmd.Openform.
For example, to open a form named 'frmB' on the record where the frmBid
field is equal to the frmAid on the current form
docmd.OpenForm "frmB",,,"frmBid=" & me.frmAid

Signature

Sandra Daigle [Microsoft Access MVP]
Please post all replies to the newsgroup.

Tiago Patr?cio wrote:

> Hi everybody!
>
[quoted text clipped - 14 lines]
>
> Best Regards to all
- 03 Jan 2005 16:33 GMT
try this,
assuming you want to populate text boxes in formB with
info that is in text boxes in formA.
In the formB text box's control source put
=[forms]![FormA]![text1]
where text1 is the info you wish to transfer to formB.

>-----Original Message-----
>Hi everybody!
[quoted text clipped - 15 lines]
>Best Regards to all
>.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.