SunQuest
 
           Microsoft Access Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft Access Help

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:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old September 25th, 2003, 07:18 PM
thejoemeister thejoemeister is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 6 thejoemeister User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question form displays recordset incorrectly

using ms access 2000, I have a form(VB) that when it displays a record using the find/replace function, it displays properly however, the record locator at the bottom of the form stays on the previous record messing up any updates.

I'm attaching the form.

Any help is greatly appreciated!!

JOE

Reply With Quote
  #2  
Old September 27th, 2003, 06:18 PM
ansentry's Avatar
ansentry ansentry is offline
Access amateur
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Melbourne, Australia
Posts: 494 ansentry User rank is Corporal (100 - 500 Reputation Level)ansentry User rank is Corporal (100 - 500 Reputation Level)ansentry User rank is Corporal (100 - 500 Reputation Level)ansentry User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 5 Days 19 h 49 m 55 sec
Reputation Power: 7
thejoemeister,

How are you using the "find/replace function"?


What are you trying to achieve? If you want to change iformation in records I would use an udate query.


Also there is not attachment to your post.

Regards,
__________________
Regards,


John A


Reply With Quote
  #3  
Old October 3rd, 2003, 12:29 AM
thejoemeister thejoemeister is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 6 thejoemeister User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
My boss has a form that displays table data. It has a search button that when clicked, it calls the MS Access Find/Replace tool. When a search is performed and a record is displayed, it does not change the record locator so when edits are performed, the changes are applied to the "previous" record and not the current one. I tried uploading the form, but I don't see it anywhere here.

In the meantime I will study up on the update query.

JOE

Reply With Quote
  #4  
Old October 3rd, 2003, 05:34 AM
ansentry's Avatar
ansentry ansentry is offline
Access amateur
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Melbourne, Australia
Posts: 494 ansentry User rank is Corporal (100 - 500 Reputation Level)ansentry User rank is Corporal (100 - 500 Reputation Level)ansentry User rank is Corporal (100 - 500 Reputation Level)ansentry User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 5 Days 19 h 49 m 55 sec
Reputation Power: 7
Joe,

To post the database firstly zip it then attach it.

Let me see you have a form with controls etc and you want to FIND a certain record for say a certain customer. Am I on the right track? If so then you need to use a combo box to look up the record and display it in the form. An update query is to change data in the underlying table.

If this is what you want to do then reply and I will send you a sample db. My way only works if you want to look up set fields.

Anyway reply and I will take it from there.

Regards,

Reply With Quote
  #5  
Old October 5th, 2003, 05:26 PM
thejoemeister thejoemeister is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 6 thejoemeister User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
The db owner created a table for everything that the data entry clerks fill out. Essentially, everyone works out of the same table.

The owner had someone create a form that created different levels of user/groups so that access to the db was regulated. In comes me, the joemeister, and since I know what MS Access is and I have played with it before, I've been tasked with fixing this mess.

The problem is thus:
With the one "Master sales" form, depending on the user, certain fields will be accessible. The way it is supposed to work, when a search is performed an lets say you were at record #5, it "displays" the found record, let's say #10, however, when you click on "Notes" in order to make some notation, the record is #5, the one previous to the search. It's like the record curser is not following properly.

Been working on this for over 3 weeks, so any help is extremely appreciated. The database won't compact to less than 4mb so I'm sending you the "master sales" form. If you need the whole database, please provide an email address that will accept a 4mb file.

Again, many, many thanks!

JOE

Reply With Quote
  #6  
Old October 5th, 2003, 05:52 PM
ansentry's Avatar
ansentry ansentry is offline
Access amateur
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Melbourne, Australia
Posts: 494 ansentry User rank is Corporal (100 - 500 Reputation Level)ansentry User rank is Corporal (100 - 500 Reputation Level)ansentry User rank is Corporal (100 - 500 Reputation Level)ansentry User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 5 Days 19 h 49 m 55 sec
Reputation Power: 7
Joe,

No attachment.


Regards,

Reply With Quote
  #7  
Old October 6th, 2003, 07:20 PM
thejoemeister thejoemeister is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 6 thejoemeister User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Grrr, not sure why the file is not uploading. Trying again.

Thanks for your patience.

JOE
Attached Files
File Type: zip bankdb.zip (3.0 KB, 349 views)

Reply With Quote
  #8  
Old October 9th, 2003, 08:26 AM
eljakim eljakim is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 2 eljakim User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Same problem

I have exactly the same problem here.

I use
If Not IsNull(Me.OpenArgs) Then
Me.RecordsetClone.FindFirst Me.OpenArgs
If Not Me.RecordsetClone.NoMatch Then Me.Bookmark = Me.RecordsetClone.Bookmark
End If

to go to a specific record. I get to see the specific
record. However, when I update the information in
the record, the update info gets stored in the
previous record.

I have this problem both on Access XP and Access 2000,
using SQL Server 2000 with latest service pack.

I tried installing the latest MDAC and the latest JET Engine
service pack, but the problem remains there.

Reply With Quote
  #9  
Old October 9th, 2003, 09:33 AM
eljakim eljakim is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 2 eljakim User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Results

After more extensive research I have now found the
following:

This does not work. The form jumps to the correct
record, but does not store any results:
Private Sub Form_Open(Cancel as integer)
me.recordset.findfirst me.openargs
End Sub


This jumps to the correct record, but does not store
any changes:
Private Sub Form_Open(Cancel as integer)
me.requery
me.recordset.findfirst me.openargs
End Sub

This does not jump to the correct record (duh):
Private Sub Form_Open(Cancel as integer)
me.recordset.findfirst me.openargs
me.requery
End Sub

HOWEVER, and this is strange, the following has
solved *all* of our problems:
Private Sub Form_Open(Cancel as integer)
me.recordset.findfirst me.openargs
me.requery
me.recordset.findfirst me.openargs
End Sub

It jumps to the correct record AND it stores our
changes in the SQL server in the proper record.

Oh, and in case people are wondering: the problem
can be reproduced for several tables/forms, but not
for everything. I haven't figured out what causes
the problem.

Last edited by eljakim : October 9th, 2003 at 03:18 PM.

Reply With Quote
  #10  
Old October 9th, 2003, 08:32 PM
thejoemeister thejoemeister is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 6 thejoemeister User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thank you, but I'm not sure where to place this code in the form. Should I bind it to the search button or an additional button? I tried the search button, but to no avail. Thanks!

JOE

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > form displays recordset incorrectly


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 2 hosted by Hostway