A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Alternative drill down?



 
 
Thread Tools Display Modes
  #1  
Old August 9th, 2008, 01:16 AM posted to microsoft.public.access.tablesdbdesign
JString
external usenet poster
 
Posts: 90
Default Alternative drill down?

Hello all.

Lately I've been dealing with alot of corruption related problems with my
back end so I'm beginning to think of ways to try and improve the situation.
I had an idea that's alot like a drill down technique and I'd like to see
what others think about it, so here goes:

1. open main forms for read-only access

2. once a user finds a record to edit, user clicks an edit command button

3. open a recordset for that specific record using a query statement

4. use the getrows method to return an array of the data for that record

5. open a new form in single form view with no record source or control
sources and populate the form with data from the array

6. user modifies data and clicks an 'update' button

7. collect and process all data in the form into an update query statement,
then run.

8. main form is requeried.

The reason that I wanted to use arrays is to avoid consequences from a lost
connection. I'm hoping that when a user loses his or her connection when
it's read-only there will be less lock downs of the back end. So, am I out
of my mind or what? Does anyone have any suggestions?
  #2  
Old August 11th, 2008, 10:49 AM posted to microsoft.public.access.tablesdbdesign
Stefan Hoffmann
external usenet poster
 
Posts: 709
Default Alternative drill down?

hi,

JString wrote:
The reason that I wanted to use arrays is to avoid consequences from a lost
connection. I'm hoping that when a user loses his or her connection when
it's read-only there will be less lock downs of the back end. So, am I out
of my mind or what? Does anyone have any suggestions?

Nice ideas, but than why use Access?

Have you tracked down your corruption problems to a cause?
Sometimes corruption occurs when you have an instable network due to
defect switches or nics.

When you can't identify a cause there is only one thing I would try:
using a permanent open recordset.
This is basically a performance trick to reduce network traffic.
Normally the .ldb file for the backend is created and deleted again and
again.

If this doesn't work, I would consider using SQL Server (Express) as
backend...


mfG
-- stefan --
  #3  
Old August 11th, 2008, 06:51 PM posted to microsoft.public.access.tablesdbdesign
JString
external usenet poster
 
Posts: 90
Default Alternative drill down?

I've never heard of that method. How would I go about setting it up?

"Stefan Hoffmann" wrote:

hi,

JString wrote:
The reason that I wanted to use arrays is to avoid consequences from a lost
connection. I'm hoping that when a user loses his or her connection when
it's read-only there will be less lock downs of the back end. So, am I out
of my mind or what? Does anyone have any suggestions?

Nice ideas, but than why use Access?

Have you tracked down your corruption problems to a cause?
Sometimes corruption occurs when you have an instable network due to
defect switches or nics.

When you can't identify a cause there is only one thing I would try:
using a permanent open recordset.
This is basically a performance trick to reduce network traffic.
Normally the .ldb file for the backend is created and deleted again and
again.

If this doesn't work, I would consider using SQL Server (Express) as
backend...


mfG
-- stefan --

  #4  
Old August 12th, 2008, 10:03 AM posted to microsoft.public.access.tablesdbdesign
Stefan Hoffmann
external usenet poster
 
Posts: 709
Default Alternative drill down?

hi,

JString wrote:
I've never heard of that method. How would I go about setting it up?
using a permanent open recordset.

Create a new form with this code behind:

Option Compare Database
Option Explicit

Private m_Recordset As DAO.Recordset

Private Sub Form_Close()

m_Recordset.Close
Set m_Recordset = Nothing

End Sub

Private Sub Form_Load()

Set m_Recordset = CurrentDb.OpenRecordset("anyTable", dbOpenSnapshot)

End Sub

Open this form at your application start using

DoCmd.OpenForm FormName:="yourForm", _
WindowMode := acHidden


mfG
-- stefan --


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:23 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.