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
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
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
-
KB5058379 / KB 5061768 Failures
by
crown
1 hour ago -
Windows 10 23H2 Good to Update to ?
by
jkitc
3 hours, 39 minutes ago -
At last – installation of 24H2
by
Botswana12
4 hours, 24 minutes ago -
MS-DEFCON 4: As good as it gets
by
Susan Bradley
1 hour, 1 minute ago -
RyTuneX optimize Windows 10/11 tool
by
Alex5723
16 hours, 36 minutes ago -
Can I just update from Win11 22H2 to 23H2?
by
Dave Easley
9 hours, 55 minutes ago -
Limited account permission error related to Windows Update
by
gtd12345
1 day, 5 hours ago -
Another test post
by
gtd12345
1 day, 6 hours ago -
Connect to someone else computer
by
wadeer
1 day ago -
Limit on User names?
by
CWBillow
1 day, 3 hours ago -
Choose the right apps for traveling
by
Peter Deegan
17 hours, 35 minutes ago -
BitLocker rears its head
by
Susan Bradley
1 hour, 36 minutes ago -
Who are you? (2025 edition)
by
Will Fastie
33 minutes ago -
AskWoody at the computer museum, round two
by
Will Fastie
19 hours, 58 minutes ago -
A smarter, simpler Firefox address bar
by
Alex5723
1 day, 16 hours ago -
Woody
by
Scott
2 days, 1 hour ago -
24H2 has suppressed my favoured spider
by
Davidhs
1 hour, 13 minutes ago -
GeForce RTX 5060 in certain motherboards could experience blank screens
by
Alex5723
2 days, 16 hours ago -
MS Office 365 Home on MAC
by
MickIver
2 days, 9 hours ago -
Google’s Veo3 video generator. Before you ask: yes, everything is AI here
by
Alex5723
3 days, 6 hours ago -
Flash Drive Eject Error for Still In Use
by
J9438
57 minutes ago -
Windows 11 Insider Preview build 27863 released to Canary
by
joep517
4 days, 1 hour ago -
Windows 11 Insider Preview build 26120.4161 (24H2) released to BETA
by
joep517
4 days, 1 hour ago -
AI model turns to blackmail when engineers try to take it offline
by
Cybertooth
3 days, 4 hours ago -
Migrate off MS365 to Apple Products
by
dmt_3904
3 days, 5 hours ago -
Login screen icon
by
CWBillow
2 days, 19 hours ago -
AI coming to everything
by
Susan Bradley
10 hours, 26 minutes ago -
Mozilla : Pocket shuts down July 8, 2025, Fakespot shuts down on July 1, 2025
by
Alex5723
4 days, 16 hours ago -
No Screen TurnOff???
by
CWBillow
4 days, 17 hours ago -
Identify a dynamic range to then be used in another formula
by
BigDaddy07
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.