-
WSJayden
AskWoody LoungerYou could also do it this way, if you didn’t want to have to bother with combo boxes.
-
WSJayden
AskWoody Loungerhere is a basic example
-
WSJayden
AskWoody LoungerHi
Probably the easiest thing to do is to create two controls.
A combobox and a textbox.
Create the combobox so that it contains two columns, 1 the code and 2 the description.
Now…make sure the code is the column that is first in the combobox and make the second column (containing the description) a width of 0.
Now set the textbox so that it is locked and disabled. Set the datasource of the textbox like so: =comboboxname.column(1)
I will follow with an example.
J
-
WSJayden
AskWoody LoungerIf you were to use a ‘custom form’, I would open it as a dialog form using the docmd statement (it is one of the options), look it up in help. This should solve the problem of losing the focus for the appropriate control on the originating form (if it doesn’t, you can very specifically set the focus to the appropriate control in the line after the docmd (the code in the main form halts if you open a form as a dialog form until that form is closed).
Jayden
-
WSJayden
AskWoody LoungerI know that it isn’t an answer to your problem entirely…but I wonder if you could use standard message box (with OK button), then use the ‘sendkeys’ command to send a carriage return to the msgbox? Don’t know if that would work.
I would say that it is easier to create a seperate form than do this though. You could create a seperate ‘generic’ form for this purpose, passing whatever message you want displayed in the ‘openargs’ argument for the form. This means that you could have the one form for many purposes. Just an idea.
Cheers
-
WSJayden
AskWoody LoungerThe program that is stand alone that you are talking about is an Access program…not VB or C++ or something?
-
WSJayden
AskWoody LoungerOn a partly unrelated topic…but why don’t MS actually change this in Access when it automatically creates controls. It seems like it would be a relatively simple change (famous last words)?
ADDED: Sorry, this is a bit out of context at the bottom of the thread…I am talking about Access automatically naming control names exactly as their underlying Control Source.
-
WSJayden
AskWoody LoungerTry
DELETE tblA.*, tblA.PrimaryKey
FROM tblA
WHERE (((tblA.PrimaryKey) Not In (select ForeignKey FROM tblB)));Where PrimaryKey and ForeignKey are the fields that you would join on.
-
WSJayden
AskWoody LoungerNot an entirely perfect solution…but why don’t you use MS Exchange / Outlook? You would set each computer up as a resource?
I might be oversimplifying the solution, but it also might prevent a lot of hassles?
-
WSJayden
AskWoody LoungerJuly 22, 2002 at 2:24 am in reply to: DAO form cannot be updated after printing report (A2K SR1) #1794367When you say that all your other controls ‘refuse to work’ what exactly is happening with them? Are they just not responding (i.e you click them and nothing happens) or are they giving an error message?
If they are giving an error message, what is the message and is it the same for each control.
What are your other controls trying to do (ie. what code sits behind them?).
Cheers
Jayden
-
WSJayden
AskWoody LoungerIn answer to your second question:
Add the two tables to a query
Create the Join
Right click the join
Select the join that shows all records from B and only matching records from Athen..
Add to the query the joined field in table A, and give it the criteria of IS NULL (you will also want to add any field you want to see from table
viola
You should get a result set returned that gives you all records in B, that do not exist in A
J
-
WSJayden
AskWoody LoungerI’ve seen strange things happen like this when a required library is not installed.
If you go into the VBA window, then TOOLS –> REFERENCES make sure there are no missing references.
From recollection, a very common problems is DAO 3.5 and DAO 3.6
You may find that there is a reference to DAO 3.5 or DAO 3.6 , when the other doesn’t exists.
I don’t know why it affects the FORMAT or LEFT functions, but I have certainly had this problem.
Let me know how you get on.
Jayden
-
WSJayden
AskWoody LoungerHi Shane
Thanks for your reply. Unfortunately I no longer work at the place where I was doing this … so can’t test out your theory…but thanks anyway.
Jayden
-
WSJayden
AskWoody LoungerYou will need a field in the underlying table.
Then you will want to add a textbox on the form bound to that field. You would probably want the textbox enabled = false, to stop users from manually entering dates.
Then use the BeforeUpdate property of the form / record to set that text box to the current date.
Cheers
Jayden
-
WSJayden
AskWoody LoungerJust a thought out of left field, which actually has nothing to do with the database being in SQL Svr or JET.
I have had a problem with ‘erroneous’ locks from a form – when the form uses a recordsetclone of the forms recordset. Unfortunately I have never found a ‘cure’ for the problem.
On another tac. Can you go into SQL Server and actually see who is locking what and when? This may give you an idea of what SQL Server is doing at least.
![]() |
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
-
Blocking Search (on task bar) from going to web
by
HenryW
58 minutes ago -
Windows 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
6 hours, 6 minutes ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
6 hours, 12 minutes ago -
regarding april update and may update
by
heybengbeng
7 hours, 42 minutes ago -
MS Passkey
by
pmruzicka
3 hours, 46 minutes ago -
Can’t make Opera my default browser
by
bmeacham
15 hours, 22 minutes ago -
*Some settings are managed by your organization
by
rlowe44
2 hours, 5 minutes ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
14 hours, 16 minutes ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
1 day, 9 hours ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
1 day, 18 hours ago -
AI slop
by
Susan Bradley
9 hours, 4 minutes ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
1 day, 20 hours ago -
Two blank icons
by
CR2
7 hours, 59 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
2 days, 5 hours ago -
End of 10
by
Alex5723
2 days, 7 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
1 day, 5 hours ago -
test post
by
gtd12345
2 days, 13 hours ago -
Privacy and the Real ID
by
Susan Bradley
2 days, 3 hours ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
6 hours, 18 minutes ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
2 days, 18 hours ago -
Upgrading from Win 10
by
WSjcgc50
1 day, 5 hours ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
1 day, 9 hours ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
3 days, 9 hours ago -
The story of Windows Longhorn
by
Cybertooth
2 days, 21 hours ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
3 days, 11 hours ago -
Are manuals extinct?
by
Susan Bradley
12 hours, 11 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
3 days, 20 hours ago -
Network Issue
by
Casey H
3 days, 8 hours ago -
Fedora Linux is now an official WSL distro
by
Alex5723
4 days, 8 hours ago -
May 2025 Office non-Security updates
by
PKCano
4 days, 9 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.