-
WSsolar
AskWoody LoungerThank you for your interesting suggestion. I will definitely process it in the future because it has many advantages.For the time being i am having troubles with the design. Is it possible to call the before update event in the subform in a datasheet view, only if the control button TglUnitprice is not pressed ? I mean to set an If clause in the before update event ? If you answer me that it is not possile, then i will have to reconsdier my whole design
kind regards
solar
-
WSsolar
AskWoody LoungerClicking on the unitprice itself is not possible because of the befor eUpdate event. It is true, i can write the new price in it, but then i cannot update it, i am given this warning message from the BeforeUpdate event and i am thrown out of the line.And also, i didnt mention it to you, but i have locked the control Unitprice so the user should not change the price unless he uses the control on the main form, and in the Onclick event of TglUnitPrice i am unlocking the unit ptice too.I cannot suggest myself any way out of it, i can only describe to you in full detail what we are doing and what i want is to get it working.So i will be grateful for any advice, i could also change the whole approach only to get it working. Thank you in advance
kind regards
solar -
WSsolar
AskWoody LoungerThis command button is very important to me, only i cannot explain it well, since the importance is lost in cutting off the real database.The function of this button is the following. After i choose a product, then the control appears and if i want to change the price, on clicking the button i go to the control untiprice and there i can manually enter another price, not the price that is calculated automatically.However i cannot go to this control since the message appears due to the before update event in the subform.This before update event is also important to me.Please help me solve this problem.
-
WSsolar
AskWoody LoungerHow can i transfer the value of the eee field programatically.? When i have a blank table i have to move by hand from the first position, write eee and only then my code works.I want to do it programatically as :
Public Function UpdateCompanyname()
Dim sqlstring As String
sqlstring = “UPDATE TblClients SET CompanyName = ‘eee’WHERE Clientid = 1”
CurrentDb.Execute sqlstring
End Function
Of course with a blank database it will not work, but is it possible to do it by code ? -
WSsolar
AskWoody LoungerThank for your precious help ! And now everything is just fine ! I got everything in order and my code runs smootlhly
-
WSsolar
AskWoody Loungerthe following command is not effective :
Dim SQL As String
SQL = ” INSERT INTO TblClients ( Clientid, CompanyName )SELECT [Clientid]+1000 AS Expr1, [TblClients].CompanyName FROM TblClients;”
CurrentDb.Execute SQL -
WSsolar
AskWoody Loungeryes , yes, i ran with Run and it works ! Can i make an sql and then run the command ” Currentd,execute sql ” ? How should i do it, since it is not a simple sql ?
-
WSsolar
AskWoody LoungerThank you for your reply.Please help me because this is so important for me.First i cannot find the Run button.I cannot see it . I also went to view/toolbars/customize and selected everything about query but could not find the Run button..Is there a way to acomplish with with an sql and then use the command CurrentDb.Execute SQL.It will also be much easier for me to convert all the tables.
I need to begin my tables with a new autonumber, while leaving the old autonumbers as they are.For example i have a table beginning with 5000. Now i want to add a new autonumber beginning with 500000 but not delete the numbers with 5000.So my aim is to place a new autonumber.
Thank you for everythingsolar
-
WSsolar
AskWoody Loungeri did it but again i failed.But i am sure i havent done something properly
-
WSsolar
AskWoody LoungerThank you for that. I immeditely tried it with success !
-
WSsolar
AskWoody LoungerWhat a good idea ! It saves so much time and efforts !
-
WSsolar
AskWoody LoungerThe names of the months stay visible on the option box. What i mean is the labels above the control where the result of the option box is shown. When i choose a month, the result appears on the control of the form. I want, above this control, to have a label for each montn. The label for january with name M1, shoulkd be made visible only when the option january is clicked.But when i clik on another month, the label for january should be made invisible. When i click on another month, only this label should be made visible. For me it is very difficult
kind regards
-
WSsolar
AskWoody LoungerIt just works fine.Thank you
-
WSsolar
AskWoody LoungerThank you ! works great !
-
WSsolar
AskWoody LoungerYes Hans, everything is OK now. My report shows the right figures !!!
Thank you !
![]() |
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
-
MS Passkey
by
pmruzicka
3 hours, 13 minutes ago -
Can’t make Opera my default browser
by
bmeacham
5 hours, 8 minutes ago -
*Some settings are managed by your organization
by
rlowe44
3 hours, 1 minute ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
4 hours, 2 minutes ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
23 hours, 44 minutes ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
1 day, 8 hours ago -
AI slop
by
Susan Bradley
1 day, 7 hours ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
1 day, 10 hours ago -
Two blank icons
by
CR2
19 hours, 35 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
1 day, 18 hours ago -
End of 10
by
Alex5723
1 day, 21 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
19 hours, 30 minutes ago -
test post
by
gtd12345
2 days, 3 hours ago -
Privacy and the Real ID
by
Susan Bradley
1 day, 17 hours ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
1 day, 9 hours ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
2 days, 7 hours ago -
Upgrading from Win 10
by
WSjcgc50
19 hours, 40 minutes ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
23 hours, 14 minutes ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
2 days, 23 hours ago -
The story of Windows Longhorn
by
Cybertooth
2 days, 11 hours ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
3 days, 1 hour ago -
Are manuals extinct?
by
Susan Bradley
1 hour, 57 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
3 days, 10 hours ago -
Network Issue
by
Casey H
2 days, 21 hours ago -
Fedora Linux is now an official WSL distro
by
Alex5723
3 days, 22 hours ago -
May 2025 Office non-Security updates
by
PKCano
3 days, 23 hours ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
4 days, 1 hour ago -
pages print on restart (Win 11 23H2)
by
cyraxote
3 days, 1 hour ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
4 days, 3 hours ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
4 days, 3 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.