Using the Command Button Wizard, and to find specific data, I am running into an absence of fields issue (see image). The form the command button is to be used in is a continuous form, and the one it “calls” is a single form; both are based on the same query. I’ve never seen this before, so I reverted to writing the code myself as a double-click event, but got a file type mismatch error upon running; but, like I said, both are based in the same query. I’m baffled. Any help, as always, is much appreciated. :confused:
![]() |
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 |
-
Command Button Wizard
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Command Button Wizard
- This topic has 5 replies, 3 voices, and was last updated 13 years, 6 months ago.
AuthorTopicWSbfxtrfcmgr
AskWoody LoungerNovember 29, 2011 at 12:31 pm #480240Viewing 1 reply threadAuthorReplies-
WSjohnhutchison
AskWoody LoungerNovember 29, 2011 at 2:56 pm #1308451We need more information. Can you show us the code you have written. What fields are you using? What type are they?
The fact that both forms use the same query should not make any difference.When you say a “file type mismatch” do you mean a “data type mismatch”?
Have you created fields using the Lookup wizard perhaps? It does a good job of hiding the real data type of fields and so causing confusion sometimes.
-
WSbfxtrfcmgr
AskWoody LoungerNovember 29, 2011 at 3:32 pm #1308461Ooops, yes, that’s “data” and not “file” type mismatch John. The Data Type is AutoNumber Long Integer (it is the record ID number). The Lookup Wizard was used for three combo boxes when the table was built (all text format). Here’s the code:
Code:Private Sub Provider_DblClick(Cancel As Integer) On Error GoTo ErrHandler Dim stDocName As String Dim stLinkCriteria As String stDocName = “Frm_Event_EOB” stLinkCriteria = “[ID]=” & “‘” & Me![ID] & “‘” DoCmd.OpenForm stDocName, , , stLinkCriteria ExitErrHandler: Exit Sub ErrHandler: MsgBox Err.Description Resume ExitErrHandler End Sub
-
WSpatt
AskWoody Lounger -
WSbfxtrfcmgr
AskWoody Lounger
-
-
-
-
WSpatt
AskWoody Lounger
Viewing 1 reply thread -

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
-
How get Group Policy to allow specific Driver to download?
by
Tex265
9 minutes ago -
AI is good sometimes
by
Susan Bradley
1 hour, 18 minutes ago -
Mozilla quietly tests Perplexity AI as a New Firefox Search Option
by
Alex5723
2 hours, 20 minutes ago -
LibreOffice 25.8. No Windows 7, 8/8.1, x86
by
Alex5723
28 minutes ago -
Perplexity Pro free for 12 mos for Samsung Galaxy phones
by
Patricia Grace
21 hours, 19 minutes ago -
June KB5060842 update broke DHCP server service
by
Alex5723
19 hours, 51 minutes ago -
AMD Ryzen™ Chipset Driver Release Notes 7.06.02.123
by
Alex5723
23 hours, 53 minutes ago -
Excessive security alerts
by
WSSebastian42
50 minutes ago -
* CrystalDiskMark may shorten SSD/USB Memory life
by
Alex5723
1 day, 9 hours ago -
Ben’s excellent adventure with Linux
by
Ben Myers
49 minutes ago -
Seconds are back in Windows 10!
by
Susan Bradley
20 hours, 30 minutes ago -
WebBrowserPassView — Take inventory of your stored passwords
by
Deanna McElveen
3 hours, 3 minutes ago -
OS news from WWDC 2025
by
Will Fastie
26 minutes ago -
Need help with graphics…
by
WSBatBytes
4 hours, 40 minutes ago -
AMD : Out of Bounds (OOB) read vulnerability in TPM 2.0 CVE-2025-2884
by
Alex5723
2 days ago -
Totally remove or disable BitLocker
by
CWBillow
23 hours, 57 minutes ago -
Windows 10 gets 6 years of ESU?
by
n0ads
1 day, 3 hours ago -
Apple, Google stores still offer China-based VPNs, report says
by
Nibbled To Death By Ducks
2 days, 11 hours ago -
Search Forums only bring up my posts?
by
Deo
6 hours, 2 minutes ago -
Windows Spotlight broken on Enterprise and Pro for Workstations?
by
steeviebops
2 days, 23 hours ago -
Denmark wants to dump Microsoft for Linux + LibreOffice
by
Alex5723
2 days, 15 hours ago -
How to get Microsoft Defender to honor Group Policy Setting
by
Ralph
2 days, 23 hours ago -
Apple : Paragon’s iOS Mercenary Spyware Finds Journalists Target
by
Alex5723
3 days, 10 hours ago -
Music : The Rose Room – It’s Been A Long, Long Time album
by
Alex5723
3 days, 11 hours ago -
Disengage Bitlocker
by
CWBillow
3 days, 1 hour ago -
Mac Mini M2 Service Program for No Power Issue
by
Alex5723
3 days, 13 hours ago -
New Win 11 Pro Geekom Setup questions
by
Deo
6 hours, 6 minutes ago -
Windows 11 Insider Preview build 26200.5651 released to DEV
by
joep517
3 days, 20 hours ago -
Windows 11 Insider Preview build 26120.4441 (24H2) released to BETA
by
joep517
3 days, 20 hours ago -
iOS 26,, MacOS 26 : Create your own AI chatbot
by
Alex5723
4 days 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.