473,495 Members | 2,021 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Requery and move to last record on a subform

19 New Member
i'm having a problem with the requery and move to last command on some subforms.

The subforms are used to view the data enterd into the table. I have 3 forms that use subforms. On 2 of the subforms the requery is made and the data can be seen on the subform ,but the subform does not go to the las record enterd, the user having to search for it.The data seems to updated by user...but there is no ordery by statement.
On one form the requery + go to last record works fine. The code is practically the same...so why does it not work?

here is the general code:
Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_AfterInsert()
  2. Me![CustomerSupportActivityBranch subform].Requery
  3. Me.[CustomerSupportActivityBranch subform].Form.RecordsetClone.MoveLast
  4. Me.[CustomerSupportActivityBranch subform].Form.Bookmark = Me.[CustomerSupportActivityBranch subform].Form.RecordsetClone.Bookmark
  5. End Sub
  6.  
Thank you
Oct 7 '09 #1
3 5469
NeoPa
32,556 Recognized Expert Moderator MVP
I doubt if anyone can tell you without seeing it. You tell us there are three subforms and that one is different from the other two. You don't tell us, and we have no way of finding out for ourselves, what is different in the design of any of these forms. I can't see a way we can answer your question. Sorry.
Oct 7 '09 #2
Kan09
19 New Member
I solved the problem by recreating the two subforms. The problem was probably something from A2000...because the subforms were built in A2000 and i'm working on 2003.

Thanx
Oct 15 '09 #3
NeoPa
32,556 Recognized Expert Moderator MVP
That's good news. I'm glad you solved (and posted it) your problem.
Oct 15 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
2971
by: M Wells | last post by:
Hi All, I am developing an Access 2003 project application with the back end in SQL Server 2003. I have a master form that tracks projects, and several subforms on it that track various...
6
5462
by: Tim Marshall | last post by:
Here's the situation. A form, frmSetUp, with a subform control called subExplain with a source object form frmSetUpSubDefineSides. The source object is a bound form, displaying a few records, no...
4
6965
by: Dave Boyd | last post by:
Hi, I have two very similar forms each with a subform. The main form gets a few fields from the user and passes this back to a query that the subform is bound to. The requery is done when the...
1
3233
by: Johnny Meredith | last post by:
I have an unbound main form (one side) with a subform (many side). The main form has a textbox control on it whose visible property is set to false. It's controlsource property is a reference to...
2
6798
by: Gilz | last post by:
Hi Hope someone can help this is driving me round the bend. I have a form called "frmMain_People" with a tab control on it with 2 sub forms called "fsubMain_People_Enquiries_Live" and...
2
6032
by: Reginald Bal | last post by:
Hello, I created a main form with 2 subforms. In an attempt to move to the next record (or new record) on the main form I get the error " Method 'requery' of object '_Subform' failed". The...
6
7969
by: MarkoBBC | last post by:
Hi everyone, First a brief description of my form: I have a subform within a main form. In my subform, I have a listbox displaying address information by firm name. A user first has to select a...
2
1910
by: Swinky | last post by:
Can someone explain to me the proper syntax for requery and where to input it in my form? I have a main form "Account-Master" with two subforms: 1.) Contacts and 2.)TNotes. The TNotes subform...
31
6622
by: matthewslyman | last post by:
I have an unusual design and some very unusual issues with my code... I have forced Access to cooperate on everything except one issue - record deletion. My form design involves a recursively...
0
7120
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7160
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7373
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5456
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3088
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1405
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
649
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
286
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.