Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Advice on populating an unbound form

Posted on 2012-03-21
4
Medium Priority
?
353 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
  • 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
In a use case, a user needs to close an opened report by simply pressing the Escape (Esc) key. This can be done by adding macro code in Report_KeyPress or Report_KeyDown event.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
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…
Suggested Courses

963 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