I
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
subform problem (97)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » subform problem (97)
- This topic has 13 replies, 4 voices, and was last updated 23 years, 8 months ago.
Viewing 6 reply threadsAuthorReplies-
notbrl
AskWoody Lounger -
WSMarkLiquorman
AskWoody LoungerAugust 1, 2001 at 9:44 pm #535554I find the best way to maneuver in a subform from a mainform is via the subform recordsetclone. First of all, you need to know the name of the subform control on the mainform. The subform control name may or may not be the same as the name of the subform itself. I’ll just use subformcontrolname.
with Me.subformcontrolname.form.recordsetclone .findfirst "refno=" & txtrefno if .nomatch=true then ' means you didn't find it exit sub end if Me.subformcontrolname.form.bookmark = .bookmark end with
-
WSarage
AskWoody Lounger -
WSMarkLiquorman
AskWoody Lounger -
WSarage
AskWoody Lounger -
WSMarkLiquorman
AskWoody LoungerAugust 2, 2001 at 4:50 pm #535692I just sort of assumed since you used the phrases “refnum” and “invoicenum” that you were dealing with numbers! You must modify your code to enclose the value of the controls in apostrophes, like this:
invoicenum='" & txtinvoicenum & "'"
And invoicenum is a memo field? Why not a text field?
-
-
-
-
WScharlotte
AskWoody Lounger -
WSarage
AskWoody Lounger
-
-
WSMarkLiquorman
AskWoody LoungerWSMarkLiquorman
AskWoody LoungerWSMarkLiquorman
AskWoody LoungerAugust 27, 2001 at 5:54 pm #539233‘find the record
rst.FindFirst strSearch
Forms!frmL60Tin!sfTin.SetFocus
DoCmd.RunCommand acCmdRecordsGoToNew
Forms!frmL60Tin!sfTin.Form!txtOp.SetFocusAssuming you put together your strSearch, then I think your problem is here. What is rst? I would do this:
set rst = me.recordsetclone
rst.findfirst strSearch
if rst.nomatch=false then
me.bookmark = rst.bookmark
end if
rst.close
set rst = nothingWSMarkLiquorman
AskWoody LoungerAugust 27, 2001 at 9:32 pm #539278I’ve gotten confused as to what you were trying to do. Going back, I see it was to move to a record on a subform. Therefore, you need to declare the recordset differently. You can’t use Me.REcordsetClone, as this is for the recordset on the mainform. You need to refer to the recordset in the subform; you do this via the subform control that is on the mainform (and not the actual subform name, although they may be the same). Let’s assume this control name is call subControl. You need this:
set rst = me!subControl.Form.recordsetclone
AFter that, everything is the same as I previously wrote.
WSMarkLiquorman
AskWoody LoungerAugust 28, 2001 at 4:52 pm #539464I think you have a sequencing problem. Your did your rst.FindFirst, which finds a record in the recordsetclone. But then you move focus to the subform, etc. However, positioning yourself in the recordsetclone doesn’t do anything by itself. YOu need to do the Me.book=rst.bookmark at this time, BEFORE you move focus to the subform!
Viewing 6 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Blocking Search (on task bar) from going to web
by
HenryW
3 hours, 6 minutes ago -
Windows 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
8 hours, 13 minutes ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
8 hours, 19 minutes ago -
regarding april update and may update
by
heybengbeng
9 hours, 49 minutes ago -
MS Passkey
by
pmruzicka
5 hours, 53 minutes ago -
Can’t make Opera my default browser
by
bmeacham
17 hours, 29 minutes ago -
*Some settings are managed by your organization
by
rlowe44
4 hours, 12 minutes ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
16 hours, 23 minutes ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
1 day, 12 hours ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
1 day, 21 hours ago -
AI slop
by
Susan Bradley
11 hours, 11 minutes ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
1 day, 22 hours ago -
Two blank icons
by
CR2
10 hours, 6 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
2 days, 7 hours ago -
End of 10
by
Alex5723
2 days, 9 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
1 day, 7 hours ago -
test post
by
gtd12345
2 days, 15 hours ago -
Privacy and the Real ID
by
Susan Bradley
2 days, 6 hours ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
8 hours, 25 minutes ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
2 days, 20 hours ago -
Upgrading from Win 10
by
WSjcgc50
1 day, 8 hours ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
1 day, 11 hours ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
3 days, 11 hours ago -
The story of Windows Longhorn
by
Cybertooth
2 days, 23 hours ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
3 days, 13 hours ago -
Are manuals extinct?
by
Susan Bradley
14 hours, 18 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
3 days, 23 hours ago -
Network Issue
by
Casey H
3 days, 10 hours ago -
Fedora Linux is now an official WSL distro
by
Alex5723
4 days, 11 hours ago -
May 2025 Office non-Security updates
by
PKCano
4 days, 11 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.