-
WSClausParkhoi
AskWoody LoungerWell, we made our replies concurrently.
To make the proposed code sequence work as I imagine you would like it to, reset the timer interval in the timer event, e.g.:
Me.TimerInterval = 400 ‘ (or whatever timerinterval you need) -
WSClausParkhoi
AskWoody LoungerA combination of a textbox and a timer event for the form will do it.
Define a textbox to hold the time.
Use a timer event to update the time in the textbox repeatedly using your preferred timer interval.
You will find help about timer events in Access help. -
WSClausParkhoi
AskWoody LoungerWe need additional information. Please explain:
- Tell in plain words what your aim is (e.g. I want to add a new client to a table of clients)
- Describe the tables involved – primary keys and other major fields
- How are they joined?
- You say “append…… just the items I selected”. Is it about records on a subform or a filtered main form?
- Show your append query
-
WSClausParkhoi
AskWoody LoungerDarsha,
From your description I read that tblClients has two fields only: ClientID and ClientName. I assume that ClientID is an autonumber.
If true, replace the code from DoCmd.OpenForm through End If (before Case vbNo) with this:Dim dbs as Database
Dim rst as RecordSet
Set dbs=CurrentDb
Set rst=dbs.OpenRecordset(“tblClientList”)
rst.AddNew
rst!ClientName=NewData
rst.Update
rst.close
Response=acDataErrAdded -
WSClausParkhoi
AskWoody LoungerDarsha,
The cause of all your trouble is that your code never gets to process the requery of the combobox. The way the NotInList event is coded the Response = acDataErrAdded stmt is never executed, since your frmClient will never be loaded at the point in your code where you check for it -
WSClausParkhoi
AskWoody LoungerI’ll bet you close your form in your button click event just after opening the report. Then the reference to the date on your form will be invalid once you get to page 2 on your report.
-
WSClausParkhoi
AskWoody LoungerIf you have to do it in VBA I suggest you consider using DoCmd.RunSQL.
Then you are free to compose your SQL stmt as you wish incl. the construction of the WHERE clause you need for your job. -
WSClausParkhoi
AskWoody LoungerArage,
Is this a continuation of your post on numerous entries in a textbox? I.e. is what you are asking really how to deal with that in a WHERE clause? -
WSClausParkhoi
AskWoody LoungerWendell,
You may have a look at Woody’s Office Watch Vol. 7 no. 3 and no. 4 if you haven’t already been there.
-
WSClausParkhoi
AskWoody LoungerArage,
If you want to use a value in a control on your form as a criteria in a stored query you very often don -
WSClausParkhoi
AskWoody LoungerJanuary 24, 2002 at 8:36 pm in reply to: NotInList event / add new record in a subform (97/SR-2) #565884Stephan,
If you would like to, you can do the
Docmd.GotoControl “subformname” and the
DoCmd.GoToRecord acActiveDataObject, , acNewRec
in your code replacing the call to the macro. -
WSClausParkhoi
AskWoody LoungerWhen you create a referential one-to-may relation between Customers and Orders on CustomerID (which is a sensible choice) you are telling the system, that a customer must exist (i.e. stored in the Customers table) in the database before placing an order for that customer.
You CAN have a flat form for the order entry even without a query as long as you make sure that either 1) you select an existing customer for the order or 2) you have a mechanism to detect that the customer does not exist and then create and store the new customer to the Customers table before saving the new order.
An effective way of doing/ensuring this is to use a combobox (bound column = CustomerID) for the customer selection on the order entry form. You must have a NotInList event for the combobox, if you want to enter a new customer via the form. Code in the NotInList event will have to make the end user choose whether to accept or cancel when the customer name typed in the combobox does not already exist in the Customers table. In the case of accept you will have to create and store the new customer entry in the Customers table. Personnaly I prefer to let the NotInList event open a customer entry form using addnew and dialog mode.
You can find help for the NotInList event in Access help and I think you should also take a good look at the Nothwind sample application (in particular the Orders mdb) on your Office CD. -
WSClausParkhoi
AskWoody LoungerIf this is a one time event and you want to get rid of all occurences of # in your table or in just one column of your table, then just open your table and click the replace tool (in the Edit menu). Choose your options. Look for # and let the replacement line stay empty.
-
WSClausParkhoi
AskWoody LoungerPeter,
The Activity_ID_GotFocus event for your combobox is not triggered when you close the form used for added activities to your activity table. It would be for a control on the main form.You may verify my statement by including a (Debug.Print -
WSClausParkhoi
AskWoody LoungerI’ll share my thoughts. Don’t use autonumbering if you want to control numbering. Using autonumbering means that you don’t care what the numbers are as long as they are unique, since that is what is needed for a primary key. Don’t show the user the autonumber on a form – it’s just an internal thing.
![]() |
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 |

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
-
Office gets current release
by
Susan Bradley
14 minutes ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
5 hours, 18 minutes ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
2 hours, 2 minutes ago -
Stop the OneDrive defaults
by
CWBillow
6 hours, 7 minutes ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
16 hours, 3 minutes ago -
X Suspends Encrypted DMs
by
Alex5723
18 hours, 15 minutes ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
18 hours, 33 minutes ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
19 hours, 10 minutes ago -
OpenAI model sabotages shutdown code
by
Cybertooth
19 hours, 47 minutes ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
7 hours, 57 minutes ago -
Enabling Secureboot
by
ITguy
14 hours, 56 minutes ago -
Windows hosting exposes additional bugs
by
Susan Bradley
1 day, 3 hours ago -
No more rounded corners??
by
CWBillow
23 hours, 29 minutes ago -
Android 15 and IPV6
by
Win7and10
13 hours, 15 minutes ago -
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
1 day, 16 hours ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
1 day, 18 hours ago -
Windows 11 Insider Preview Build 26100.4202 (24H2) released to Release Preview
by
joep517
1 day, 13 hours ago -
Windows Update orchestration platform to update all software
by
Alex5723
2 days, 2 hours ago -
May preview updates
by
Susan Bradley
1 day, 13 hours ago -
Microsoft releases KB5061977 Windows 11 24H2, Server 2025 emergency out of band
by
Alex5723
1 day, 5 hours ago -
Just got this pop-up page while browsing
by
Alex5723
1 day, 18 hours ago -
KB5058379 / KB 5061768 Failures
by
crown
1 day, 15 hours ago -
Windows 10 23H2 Good to Update to ?
by
jkitc
17 hours, 30 minutes ago -
At last – installation of 24H2
by
Botswana12
2 days, 17 hours ago -
MS-DEFCON 4: As good as it gets
by
Susan Bradley
14 hours, 17 minutes ago -
RyTuneX optimize Windows 10/11 tool
by
Alex5723
3 days, 5 hours ago -
Can I just update from Win11 22H2 to 23H2?
by
Dave Easley
1 day, 4 hours ago -
Limited account permission error related to Windows Update
by
gtd12345
3 days, 19 hours ago -
Another test post
by
gtd12345
3 days, 19 hours ago -
Connect to someone else computer
by
wadeer
3 days, 13 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.