-
WSJack Cowley
AskWoody LoungerI suggest that you always use the full year rather then the last two digits. This article may help shed some light…
http://support.microsoft.com/default.aspx?…b;en-us;Q208339
hth,
Jack -
WSJack Cowley
AskWoody LoungerDoCmd.OpenReport “ReportName”, acPreview
DoCmd.RunCommand acCmdZoom150When you put in the RunCommand you can choose your magnifcation….
hth,
Jack -
WSJack Cowley
AskWoody LoungerTry putting this all on one line –
DoCmd.OpenForm “frmParticipantsInWorkshops”, , , “ParticipantID = ” & ParticipantID, , acDialog
Just a guess on my part because you are not using the Continuation underscore and & properly….
hth,
Jack -
WSJack Cowley
AskWoody LoungerI would suggest that you look into Rick Fishers Find and Replace program. The price is certainly right and it is in indispensible tool in my opinion. Go to http://www.rickworld.com to download a trial version…
hth,
Jack -
WSJack Cowley
AskWoody LoungerI think I now understand what you are saying. What is happening is that the first form comes up with the right student but when you click on a command button to go to another form it shows all students with the last name that was selected the first time round. If you look at the code in the button that opens the next form it probably says something like: DoCmd.OpenForm “FormNameHere”, , , “[LastName]= ‘” & Me![LastName] & “‘”. You need to change that so it reads like this:
“[LastName]= ‘” & Me![LastName] & “‘ And [FirstName] = ‘” & Me.FirstName & “‘”
The quotes are a bit hard to read so here it is again with extra spaces… (Don’t use the extra spaces)
“[LastName]= ‘ ” & Me![LastName] & ” ‘ And [FirstName] = ‘ ” & Me.FirstName & ” ‘ ”
Let us know if we are on the right track for you….
Jack
-
WSJack Cowley
AskWoody LoungerI am not sure how you are going about your search. Are you are using combo boxes to list last and first names? Text boxes? Do you have a query that gets its criteria from the combo or text boxes? If you are using combo boxes or text boxes and you have criteria something like this in the Criteria field of your query: [Forms]![YourFormName]![YourTextBoxName] then be sure that they are on the same line so that the query is doing an AND search. For example LastName = Smith AND FirstName = Robert. This way you will only find the Robert Smith’s but no Amanda’s….
A bit more detail on how you are selecting and looking for your records will help someone here to give you a more complete and accurate answer.
Jack
-
WSJack Cowley
AskWoody LoungerI am sorry but I don’t have an answer for your first question. As for your second question it is a bit hard to give you an answer but here is a start. The Option button returns either Yes or No. How you use that is the tricky part. This code will tell you what the user has selected and would be put in the After Update event of the Option button.
Select Case OptionButtonName
Case 0
Me.ATextBox = “No”
Case -1
Me.ATextBox = “Yes”
End SelectWithin this Select Case you can replace the Me.ATextBox with your code to put whatever it is in the unbound text box on your form. Also, you MAY need to put code like this in the On Current event of the form to be sure that the data in your unbound field is properly updated depending on the state of the Option button.
If you can give a specific example of what you are trying to do I a sure that someone here can give you a much more specific answer.
hth,
Jack -
WSJack Cowley
AskWoody LoungerIf you have an unbound text box named Text1 on your form then code like this in the After Update event of the text box will fill the rest of the fields on the form with the correct data:
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst “[AcctID] = ” & Me.Text1
Me.Bookmark = rs.BookmarkChange the AcctID to the actual field your are looking for and change Text1 to the actual name of your unbound text box. In this code I have assumed that AcctID is numerical and NOT text. If it is text then the second line should read: rs.FindFirst “[AcctID] = ‘”& Me.Text1& “‘”. (Here I have added extra spaces so you can see the proper syntax: rs.FindFirst “[AcctID] = ‘ ” & Me.Text1& ” ‘ “. Do not add the extra spaces.)
hth,
Jack -
WSJack Cowley
AskWoody LoungerAre you saying that you do NOT want to select the information from a combo box but type it in to a text box instead? Look at the code created by the combo box that does what you want and modify that code to use the name of the text box instead as that will probably be the easiest way to do it. My only comment would be that I suggest you stick with the combo box as this will show only existing records and avoid any typos, etc., but it is your call….
hth,
Jack -
WSJack Cowley
AskWoody LoungerJanuary 3, 2002 at 12:47 am in reply to: Patience with a newbie, please… (2000 (unsure of SR)) #561200Access2000 has a database that comes with it called “Inventory Control”. You should be able to find this with the first dialog box that opens when you open Access. The first dialog box has a choice of ‘Access database wizards, pages and project’. Select that radio button and then click ‘OK’ and you will see the sample databases. I think if you look at this database it will at least give you a start. Good luck!
hth,
Jack -
WSJack Cowley
AskWoody LoungerDo you make selections from one or more of the List boxes? If so then I would suggest that you take a look at this article for information on how to create a dynamic query.
http://support.microsoft.com/support/kb/ar…_SRCH&SPR=ACC97
Next, since you are selecting muliple items from the List boxes you will need to use the In() statment in your query and this article will help you with that.
http://support.microsoft.com/default.aspx?…b;EN-US;Q100131
I do not think that what you want to do is going to be a cake walk, but you can do it!
hth,
Jack -
WSJack Cowley
AskWoody LoungerI think you want to use MsgBox. MsgBox = “Bad Entry”. Search help for more details on MsgBox.
hth,
Jack -
WSJack Cowley
AskWoody LoungerI am glad you got it to work as that is all that really matters. Continued success!
Jack
-
WSJack Cowley
AskWoody LoungerI guess we would need to see the code in your Module or tell us what the code is supposed to do. My suggestion is just one way to call code and may not be the correct way in your case.
Jack
-
WSJack Cowley
AskWoody LoungerIf you want to call your function from the On Click event of a command button you would put something similar to this in the On Click event: =YourFunctionName(Arguments).
I haven’t used macros for years so I am not sure how to do what you want.
hth,
Jack
![]() |
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 |

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
-
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
6 hours, 7 minutes ago -
AI slop
by
Susan Bradley
5 hours, 18 minutes ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
7 hours, 24 minutes ago -
Two blank icons
by
CR2
13 hours, 54 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
16 hours, 18 minutes ago -
End of 10
by
Alex5723
18 hours, 58 minutes ago -
End Of 10 : Move to Linux
by
Alex5723
19 hours, 28 minutes ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
15 hours, 56 minutes ago -
test post
by
gtd12345
1 day ago -
Privacy and the Real ID
by
Susan Bradley
15 hours, 7 minutes ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
7 hours, 13 minutes ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
1 day, 5 hours ago -
Upgrading from Win 10
by
WSjcgc50
6 hours, 42 minutes ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
1 day ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
1 day, 21 hours ago -
The story of Windows Longhorn
by
Cybertooth
1 day, 8 hours ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
1 day, 22 hours ago -
Are manuals extinct?
by
Susan Bradley
10 hours, 26 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
2 days, 8 hours ago -
Network Issue
by
Casey H
1 day, 19 hours ago -
Fedora Linux is now an official WSL distro
by
Alex5723
2 days, 20 hours ago -
May 2025 Office non-Security updates
by
PKCano
2 days, 20 hours ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
2 days, 22 hours ago -
pages print on restart (Win 11 23H2)
by
cyraxote
1 day, 23 hours ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
3 days ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
3 days ago -
Proton to drop prices after ruling against “Apple tax”
by
Cybertooth
3 days, 8 hours ago -
24H2 Installer – don’t see Option for non destructive install
by
JP
1 hour, 43 minutes ago -
Asking Again here (New User and Fast change only backups)
by
thymej
3 days, 19 hours ago -
How much I spent on the Mac mini
by
Will Fastie
1 day, 2 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.