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 / Modules / DAO / VBA / June 2005

Tip: Looking for answers? Try searching our database.

tabbed subform problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bill H. - 27 Jun 2005 18:34 GMT
(originally posted in wrong forum)

I have a form with several tabs.  Three of those tabs (tab 1, 2, 3) are
subforms.  Each of those subforms has the same data source (a query), and
the same relationship to the main form's data source.  The query is an outer
join to another set of tables related via the query.

What's happening is that when I go to, say tab 1, and input some data and
then move to one of the other 2 tabs, I get an error about duplicate key,
etc.  The fun part is that if, while I'm on tab 1, I move the record pointer
to the next record and then come back, I can added data on tabs 2 or 3
without getting that error.

I don't understand, but I'm thinking that somehow the data I input via the
first subform is not getting written to the other related tables until the
record pointer is moved.  Just a guess, but seems to have some logic.

So, how to I fix this little problem?

Thx.

Signature

Bill

Bas Cost Budde - 28 Jun 2005 18:50 GMT
> I don't understand, but I'm thinking that somehow the data I input via the
> first subform is not getting written to the other related tables until the
> record pointer is moved.  Just a guess, but seems to have some logic.

I subscribe to this view: as soon as you edit the record, it will be
locked/edit-mode, but any control navigation on the form will not finish
the edit.

> So, how to I fix this little problem?

Use the Change event of the tabcontrol, and do

runcommand accmdsaverecord

Signature

Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html

 
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.