Solved

Advice on populating an unbound form

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…

735 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