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 / October 2005

Tip: Looking for answers? Try searching our database.

Add a record from a bound subform to an unbound subform

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jrperez.munloiza@gmail.com - 28 Oct 2005 14:41 GMT
Ok. This is the situation.

I have a main form (frmMain) with two subforms (sbfrmBound and
sbfrmUnbound).

I move data from sbfrmBound to sbfrmUnbound using this code in a button
on sbfrmBound:

Forms!frmMain!sbfrmUnbound.Form!Field1 = Me.Field1 '("Me" refers to
sbfrmBound)
Forms!frmMain!sbfrmUnbound.Form!Field2 = Me.Field2
Forms!frmMain!sbfrmUnbound.Form!Field3 = Me.Field3
Forms!frmMain!sbfrmUnbound.Form!Field4 = Me.Field4

It works adding data to the first record on sbfrmUnbound. But then I
try to go to a new record, and I can't, either create a new record,
move the focus to sbfrmUnbound, and many many solutions.

I want to:
-Set the focus to sbfrmUnbound
-Add a new record to sbfrmUnbound with data from sbfrmBound

Any help will be aprecciated.

Juan
John Nurick - 31 Oct 2005 18:18 GMT
Hi Juan,

If sbfrmUnbound is unbound, it's meaningless to talk about "going to a
record" or "creating a new record": all you have is the subform, the
controls on it, and the values they contain.

Otherwise, please give more information about what you are trying to
achieve.

>Ok. This is the situation.
>
[quoted text clipped - 21 lines]
>
>Juan

--
John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.
 
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.