Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old March 29th, 2004, 12:36 PM
alexey1219 alexey1219 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 1 alexey1219 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Requery does not work for the first added record!

Hello,

My main form contains a subform, displaying as spreadsheet a few fields from a table.
I add a new record to that table using a pop-up form and then requery the subform to
update the spreadsheet.

This scenario works fine, but it does not update the subform for the first added record.
If I already have 10 records in the table and trying to add 11th, 12th, and 13th,
nothing happens when I add 11, but updates normally starting 12.

When I set a breakpoint on requery of a subform and after getting control on that
statement immediately run further, the update of 10th record works fine.

I watch this strange effect either for adding new record using AddNew and Update methods
of a recordset, or using connect.Execute "INSERT INTO...".

This really prevents me from getting the job done. Please help!

Thank you.

- Alexey

Reply With Quote
  #2  
Old May 29th, 2005, 05:55 AM
MichelBoivin MichelBoivin is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 1 MichelBoivin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 18 sec
Reputation Power: 0
Same behavior

I experience a very similar behavior and I have been trying to debug this problem for days!

I now suspect a delay in updating the underlying table after the Update command.
It reacts as if there was a buffer containing last entrie(s) and this buffer would dump
to really update the table only once it's full. This would explain the fact that the
requery works after you have entered the 12th and 13th transactions, then showing
11th ,12th and 13th trans.

I'm still in very thick hase!!! Any help would be appreciated

Michel

Quote:
Originally Posted by alexey1219
Hello,

My main form contains a subform, displaying as spreadsheet a few fields from a table.
I add a new record to that table using a pop-up form and then requery the subform to
update the spreadsheet.

This scenario works fine, but it does not update the subform for the first added record.
If I already have 10 records in the table and trying to add 11th, 12th, and 13th,
nothing happens when I add 11, but updates normally starting 12.

When I set a breakpoint on requery of a subform and after getting control on that
statement immediately run further, the update of 10th record works fine.

I watch this strange effect either for adding new record using AddNew and Update methods
of a recordset, or using connect.Execute "INSERT INTO...".

This really prevents me from getting the job done. Please help!

Thank you.

- Alexey

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Requery does not work for the first added record!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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 On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT