Solved

Advice on populating an unbound form

Posted on 2012-03-21
4
339 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

615 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