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, 8 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
-
Microsoft : Edge is better than Chrome
by
Alex5723
8 hours, 11 minutes ago -
The EU launched DNS4EU
by
Alex5723
20 hours, 53 minutes ago -
Cell Phone vs. Traditional Touchtone Phone over POTS
by
280park
11 hours, 14 minutes ago -
Lost access to all my networked drives (shares) listed in My Computer
by
lwerman
1 day, 2 hours ago -
Set default size for pasted photo to word
by
Cyn
1 day, 8 hours ago -
Dedoimedo tries 24H2…
by
Cybertooth
20 hours, 27 minutes ago -
Windows 11 Insider Preview build 27871 released to Canary
by
joep517
2 days, 7 hours ago -
Windows 11 ad from Campaign Manager in Windows 10
by
Jim McKenna
6 minutes ago -
Small desktops
by
Susan Bradley
5 hours, 10 minutes ago -
Totally disable Bitlocker
by
CWBillow
1 day ago -
Phishers extract Millions from HMRC accounts..
by
Microfix
2 days, 4 hours ago -
Windows 10 22H2 Update today (5 June) says up-to-date but last was 2025-04
by
Alan_uk
3 days, 11 hours ago -
Thoughts on Malwarebytes Scam Guard for Mobile?
by
opti1
1 day, 6 hours ago -
Mystical Desktop
by
CWBillow
3 days, 14 hours ago -
Meta and Yandex secretly tracked billions of Android users
by
Alex5723
2 days, 19 hours ago -
MS-DEFCON 2: Do you need that update?
by
Susan Bradley
7 hours, 10 minutes ago -
CD/DVD drive is no longer recognized
by
WSCape Sand
4 days, 5 hours ago -
Windows 11 24H2 Default Apps stuck on Edge and Adobe Photoshop
by
MikeBravo
4 days, 8 hours ago -
North Face and Cartier customer data stolen in cyber attacks
by
Alex5723
4 days, 6 hours ago -
What is wrong with simple approach?
by
WSSpoke36
2 days, 4 hours ago -
Microsoft-Backed Builder.ai Set for Bankruptcy After Cash Seized
by
Alex5723
4 days, 18 hours ago -
Location, location, location
by
Susan Bradley
3 days, 8 hours ago -
Cannot get a task to run a restore point
by
CWBillow
4 days, 19 hours ago -
Frustrating search behavior with Outlook
by
MrJimPhelps
4 days, 10 hours ago -
June 2025 Office non-Security Updates
by
PKCano
5 days, 6 hours ago -
Secure Boot Update Fails after KB5058405 Installed
by
SteveIT
8 hours, 42 minutes ago -
Firefox Red Panda Fun Stuff
by
Lars220
5 days, 6 hours ago -
How start headers and page numbers on page 3?
by
Davidhs
5 days, 16 hours ago -
Attack on LexisNexis Risk Solutions exposes data on 300k +
by
Nibbled To Death By Ducks
4 days, 19 hours ago -
Windows 11 Insider Preview build 26200.5622 released to DEV
by
joep517
6 days, 1 hour 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.