Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Advice on populating an unbound form

Posted on 2012-03-21
4
Medium Priority
?
345 Views
Last Modified: 2012-04-01
Hello,

I've developed two access form that use an underlying view from an sql server backend.  Basically, this view displays a pivoted view of the data.  The main form is a continuous form where each record is populated from the aforementioned view.  Each record has a detail button which when clicked, is used to display a detailed version of the record in single form view.  Everything is working fine.  However, management wants to be able to change data via the main form (in continuos view)  However since this data is aggregatted data, the only way I can think of to do this is to make this form an unbound form and to populate it via ado.  However, I don't think there is a way to assign data to an unbound continuous form.  I think that the only way to make changes to the data would be via making the detail form an unbound form and to populate that form which is in single form view via ado.  Are there any other alternatives?
0
Comment
Question by:chtullu135
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37749396
?
Care to simplify your question here?

Forget what you have already, ...(I think most experts were confused by your post)...

Perhaps it would be easier if you simply explained your ultimate Goal?

JeffCoachman
0
 
LVL 26

Expert Comment

by:Nick67
ID: 37749442
It's lots of coding, either way.
But you could pull your view data down into local tables to make it editable, you then have to push changes in those local table back to the underlying tables involved.

On the SQL Server side you could conceivably create an INSTEAD OF trigger on the view so that it becomes updatable.  I've looked at those, but the documentation I've been able to Google up isn't great, and with production data, I don't want to test it.  But that may be a workable approach, although <<since this data is aggregatted data,>> may also be a fly in the ointment.

I use the 'temp' tables approach myself, and have written an article about it
http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_6692-Overcoming-unbound-continuous-forms-limitations-by-staging-data.html
0
 

Accepted Solution

by:
chtullu135 earned 0 total points
ID: 37763905
I went ahead and created two forms.  One is a read only form (continuous records) that is populated by an underlying query that displays all the underlying records in an abbreviated display (only a few fields are displayed".  When the user selects a record, and clicks view details, a the key field value is passed to a sproc on the server which returns only that record to the unbound etail form.  Any changes made to  that form will be used will update the underlying table on the server via a stored procedure.  I will be passing both the original values and the new values to the stored procedure.  The reason I will be sending the original records is to address  any concurrency issues that may arise.
0
 

Author Closing Comment

by:chtullu135
ID: 37792657
The solution I came up with seemed to work bes
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question