I have a combo box (cboShip) that is used to select Ship To: (Vendors)
When a vendor is selected a calculated expression in 98050-qryVendorsAddressCalcLookup posts it’s address, city, state and zip with = [cboShipTo].[Column](2) into ShipToAddressField.
Sometimes there is incomplete address information i.e. Sacramento, is posted instead of Sacramento, CA
because CA was not originally posted.
I have a label &Ship To: that puts me back in the Vendor entry form.
On the Vendors form is a list box lstVendors. I want to be able to go from the combo box on invoice form
and go directly to it’s specific record, select it and make the form the current record to make corrections.
Frank
![]() |
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 |
-
Find a specifc record in a list box (2002)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Find a specifc record in a list box (2002)
- This topic has 11 replies, 4 voices, and was last updated 22 years, 6 months ago.
AuthorTopicWSFH123456
AskWoody LoungerSeptember 27, 2002 at 5:59 pm #377180Viewing 0 reply threadsAuthorReplies-
WSThomasW
AskWoody LoungerSeptember 27, 2002 at 6:39 pm #620506I think that I understand what you want to do. I use the following code to open a second form to the record specified by the key on the first form:
Private Sub cmdGoToSource_Click() 'Source Picklist: open frmSourceEdit for record On Error GoTo Err_cmdGoToSource_Click Dim stDocName As String Dim stLinkCriteria As String stDocName = "frmSourceEdit" stLinkCriteria = "[SourceID]=" & Me![SourceID] DoCmd.OpenForm stDocName, , , stLinkCriteria Exit_cmdGoToSource_Click: Exit Sub Err_cmdGoToSource_Click: MsgBox Err.Description Resume Exit_cmdGoToSource_Click End Sub
You will need to change the FormName to your Edit form, the cmdName to your CommandButton and the stLinkCriteria statement to your key and ListboxName (maybe with a column number, depending on what fields are in that Listbox.
-
WSFH123456
AskWoody Lounger -
WSThomasW
AskWoody Lounger -
WSFH123456
AskWoody Lounger -
WScharlotte
AskWoody Lounger -
WSFH123456
AskWoody Lounger -
WSMarkJ
AskWoody Lounger -
WSFH123456
AskWoody LoungerSeptember 28, 2002 at 7:25 pm #620675Hi Mark,
I’m sorry if I am not communicating what I’d like to do.
How do you do a screen shot and post it to the Lounge.
In the mean time.
I have two forms: Sales Invoice and Vendor Entry Form.
The Vendor Entry form has a list box of vendors-lstVendors and various fields vendor name etc.
Selecting a row on the list box lets say row 5 brings up record 5 on this form with vendor 5.
On the Sales Invoice for is a combo box that has these vendors as ship to. If in the address field the data
is incomplete I click a link and it goes to Vendor Entry Form to update the data. Your code links me up correctly with the vendor but on lstVendors on the form always is on the first row rather then say row 5 if the vendor was vendor 5.
Frank -
WSMarkJ
AskWoody LoungerSeptember 28, 2002 at 7:36 pm #620679To make a screenshot of the current window you can press ALT + PrintScreen (this copies an image to the clipboard), then open any graphics editor (such as Paint) and paste. Then crop the image to show only the relevant portion and save the image as a file – usually GIF is a good format, but if it’s big you’ll probably want to use JPG. Then use the file attach controls at the bottom of the New Post window to attach your file (Browse…). As the instructions (in RED) indicate, do this LAST or it won’t show up.
If you want to test this out you can use the Test Area forum to practice.
As for your current problem, I don’t understand what you mean by “links me up correctly with the vendor” – do you mean it opens the vendor form to the correct record? Is the vendor form a Datasheet or does it display only ONE vendor? If it is a Datasheet, then you may consider using the Filter argument of the OpenForm method/macro. Have it filter to show only the desired vendor.
Hope this helps
-
WSFH123456
AskWoody Lounger -
WSFH123456
AskWoody Lounger
-
-
-
-
Viewing 0 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
-
two pages side by side land scape
by
marc
3 hours, 56 minutes ago -
Deleting obsolete OneNote notebooks
by
afillat
6 hours, 2 minutes ago -
Word/Outlook 2024 vs Dragon Professional 16
by
Kathy Stevens
6 hours, 12 minutes ago -
Security Essentials or Defender?
by
MalcolmP
6 hours, 16 minutes ago -
April 2025 updates out
by
Susan Bradley
35 minutes ago -
Framework to stop selling some PCs in the US due to new tariffs
by
Alex5723
8 hours, 27 minutes ago -
WARNING about Nvidia driver version 572.83 and 4000/5000 series cards
by
Bob99
8 hours, 30 minutes ago -
Creating an Index in Word 365
by
CWBillow
19 hours, 57 minutes ago -
Coming at Word 365 and Table of Contents
by
CWBillow
20 hours, 2 minutes ago -
Windows 11 Insider Preview Build 22635.5170 (23H2) released to BETA
by
joep517
1 day ago -
Has the Microsoft Account Sharing Problem Been Fixed?
by
jknauth
1 day, 4 hours ago -
W11 24H2 – Susan Bradley
by
G Pickerell
1 day, 6 hours ago -
7 tips to get the most out of Windows 11
by
Alex5723
1 day, 4 hours ago -
Using Office apps with non-Microsoft cloud services
by
Peter Deegan
21 hours, 42 minutes ago -
I installed Windows 11 24H2
by
Will Fastie
8 minutes ago -
NotifyIcons — Put that System tray to work!
by
Deanna McElveen
1 day, 9 hours ago -
Decisions to be made before moving to Windows 11
by
Susan Bradley
32 minutes ago -
Port of Seattle says ransomware breach impacts 90,000 people
by
Nibbled To Death By Ducks
1 day, 18 hours ago -
Looking for personal finance software with budgeting capabilities
by
cellsee6
1 day, 2 hours ago -
ATT/Yahoo Secure Mail Key
by
Lil88reb
1 day, 2 hours ago -
Devices with apps using sprotect.sys driver might stop responding
by
Alex5723
2 days, 11 hours ago -
Neowin – 20 times computers embarrassed themselves with public BSODs and goofups
by
EP
2 days, 19 hours ago -
Slow Down in Windows 10 performance after March 2025 updates ??
by
arbrich
1 day, 21 hours ago -
Mail from certain domains not delivered to my outlook.com address
by
pumphouse
2 days, 4 hours ago -
Is data that is in OneDrive also taking up space on my computer?
by
WShollis1818
2 days, 14 hours ago -
Nvidia just fixed an AMD Linux bug
by
Alex5723
4 days, 6 hours ago -
50 years and counting
by
Susan Bradley
1 day, 4 hours ago -
Fix Bluetooth Device Failed to Delete in Windows Settings
by
Drcard:))
1 day, 7 hours ago -
Licensing and pricing updates for on-premises server products coming July 2025
by
Alex5723
4 days, 17 hours ago -
Edge : Deprecating window.external.getHostEnvironmentValue()
by
Alex5723
4 days, 17 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.