please help - I'm in workspace hell

please help - I'm in workspace hell

Post by Tim McLaughli » Fri, 29 Aug 1997 04:00:00



I am trying to use this to no avail:
****************************************************************************
****
set rs = db.openrecordset("table",dbOpenDynaset,dbAppendOnly)

with rs
        .Addnew
        !name = "Tim"
        .Update
        .Close
end with
****************************************************************************
****
it's in the load event of two different forms that are loaded sequentially.
 What is going on?  It tells me that the record is locked when I load it
the second time.  It appears to me that since the recordset is closed, the
record is NOT locked.

Are my questions too hard or easy (or just stupid!) because nobody is
answering them.  Someone please help me.

Thanks in advance,
Tim McLaughlin

 
 
 

please help - I'm in workspace hell

Post by Tim McLaughli » Mon, 01 Sep 1997 04:00:00




Quote:> Tim,

> Are you closing the database object once your finished with the
recordset?
> If not you need to and this is probably your problem.

Thanks for your response John!

No I was not, but it turns out that the problem was due to the (seemingly)
erratic fire of events (record moves) by the data control.  I had been
using it because I didn't want to code all of the fields I was displaying.
I decided to trash those controls and manage the recordsets with code.  It
solved the problem.  (and I thought that data controls had their place,
boy, was I wrong)

Sincerely,
Tim McLaughlin

 
 
 

please help - I'm in workspace hell

Post by Scott Kell » Wed, 03 Sep 1997 04:00:00


Two things.

1.  Don't use the data control.  It's just not worth the
trouble.

2.  Whenever you finish an update, Access leaves the dirty
work of actually finishing the operations to Idle time.  You
need to force Idle time with

DBEngine.Idle dbFreeLocks

This will force the idle time and free up locks.

Your code should look like this.

with rs
        .Addnew
        !name = "Tim"
        .Update
        .Close
end with
DBEngine.Idle dbFreeLocks



>> Tim,

>> Are you closing the database object once your finished with the
>recordset?
>> If not you need to and this is probably your problem.

>Thanks for your response John!

>No I was not, but it turns out that the problem was due to the (seemingly)
>erratic fire of events (record moves) by the data control.  I had been
>using it because I didn't want to code all of the fields I was displaying.
>I decided to trash those controls and manage the recordsets with code.  It
>solved the problem.  (and I thought that data controls had their place,
>boy, was I wrong)

>Sincerely,
>Tim McLaughlin

 
 
 

1. OK I'm desperate- QR hell, please help

<despondent> Hi

I have a problem that I really have to solve by Monday or I'm up the
proverbial creek without a paddle.

All I want to do is print out a single record in a table with
quickreport using bands, some which may be printed due to certain
conditions.

My problem is thus :

I lay down my quickrep component do my headers etc then place a band
on the page.
My table is called organiser and I have set the quickrep.datasource to
that.
If I use a title band at run time the report seems to rifle through
the whole of the organiser table and only print the last record.
If I use the detail band it prints all the records.
If I don't use the bands and put my db labels onto the quickrep itself
it works but then I lose the functionality of the bands ie printband =
true/false.
The overlay band I read is defunct and there is no description of what
it does.

If u can help me, please do I would be eternally grateful.
Maf

2. JDBC: Oracle drivers

3. Repost - Please help - Workspaces

4. Using LIKE with vb5/Sql HELP!

5. Please Help: Error 429: Workspaces: Activex Control Cannot Create Object

6. Beating the 2000 byte barrier

7. im stuck in stored procedure hell..please help

8. URGENT :nested sql statements?

9. Am in SQL Hell please help

10. ADO With Jet Provider, Multi User Hell, Please help

11. Help please with the program from hell LONG

12. DAO.Workspace error '800a0c4a'

13. IndexDefs.Add('Help','Please',[ixD2WorksGreat, ixD3Errors])