-
IanDarkwater
AskWoody LoungerYou don’t have to point your combobox at a table/query to collect the options. The wizard allows you so simply type in the options you want & for you this would seem ideal!
Best of Luck
Ian
-
IanDarkwater
AskWoody LoungerI suppose a criteria of
nz([Size],0)<1
(assuming size is integer) would catch both null & 0
-
IanDarkwater
AskWoody LoungerGood question! The expression looks right so it must be the data in [dtDateChanged]. Try it on another date field.
-
IanDarkwater
AskWoody LoungerNo answer is ‘wrong’ you just have to decide how you want to run your inventory.
You already said you wanted a FIFO system so that gives you your answers.
If I understand correctly that you only pay your supplier when you sell the item on then anything but a FIFO solution will probably give your supplier problem!!
-
IanDarkwater
AskWoody LoungerAn old much mentioned favorite is the Find & Replace utilty @ http://www.rickworld.com/
It’s saved me many hours & much heartache
-
IanDarkwater
AskWoody LoungerA general solution to this sort of problem are the following 2 functions which return the first part of a string up to a defined character or characters & the part after the character or characters.
Function GetFirstWord(strIn As String, chrDelimit As String) As String
‘ Parameters : strIn – string to search
‘ chrDelimit – character delimiter
‘ if delimiter is not found whole string is returned
Dim strTmp As String
Dim intPos As Integer
Dim strFirstName
Dim strLastNamestrTmp = Trim$(strIn)
intPos = InStr(strTmp, chrDelimit)If intPos = 0 Then
GetFirstWord = strTmp
Else
GetFirstWord = left$(strTmp, intPos – 1)
strLastName = Mid(strTmp, intPos + 1)
End IfEnd Function
Function GetLastWord(strIn As String, chrDelimit As String) As String
‘ Parameters : strIn – string to search
‘ chrDelimit – character delimiter
‘ if delimiter is not found null is returned
Dim strTmp As String
Dim intPos As Integer
Dim strFirstName
Dim strLastNamestrTmp = Trim$(strIn)
intPos = InStr(strTmp, chrDelimit)If intPos = 0 Then
GetLastWord = “”
Else
GetLastWord = Mid(strTmp, intPos + Len(chrDelimit))
End IfEnd Function
-
IanDarkwater
AskWoody LoungerMay 26, 2005 at 5:59 pm in reply to: Normalize Stree Name? (a2k (9.0.6926) SP-3 Jet 4.0 SP-8) #950032Try the following functions. GetFirstWord takes your input string & a delimiter string & returns your input string up to the first occurrence of your delimiter string. GetLastWord is similar but returns your input string after the first occurrence of your delimiter string. In your example the delimiter string would be ” “.
Function GetFirstWord(strIn As String, chrDelimit As String) As String
‘ Parameters : strIn – string to search
‘ chrDelimit – character delimiter
‘ if delimiter is not found whole string is returned
Dim strTmp As String
Dim intPos As Integer
Dim strFirstName
Dim strLastNamestrTmp = Trim$(strIn)
intPos = InStr(strTmp, chrDelimit)If intPos = 0 Then
GetFirstWord = strTmp
Else
GetFirstWord = left$(strTmp, intPos – 1)
strLastName = Mid(strTmp, intPos + 1)
End IfEnd Function
Function GetLastWord(strIn As String, chrDelimit As String) As String
‘ Parameters : strIn – string to search
‘ chrDelimit – character delimiter
‘ if delimiter is not found null is returned
Dim strTmp As String
Dim intPos As Integer
Dim strFirstName
Dim strLastNamestrTmp = Trim$(strIn)
intPos = InStr(strTmp, chrDelimit)If intPos = 0 Then
GetLastWord = “”
Else
GetLastWord = Mid(strTmp, intPos + Len(chrDelimit))
End IfEnd Function
-
IanDarkwater
AskWoody LoungerIf you mean that when you create a new record you want to put todays date in, say, a field called [CreationDate] then you can set the default value for that field =Now() if you want date & time or =Date() if you just want the date.
-
IanDarkwater
AskWoody LoungerGlad to help!
-
IanDarkwater
AskWoody LoungerIf you define your fields as Fixed instead of General Number it works as you want
-
IanDarkwater
AskWoody LoungerYou Americans are such sticklers for etiquette! Well I asked the Queen at dinner last night & she said you were technically correct but what I wanted to do was fine! PS the Duke of Edinburgh agreed too.
-
IanDarkwater
AskWoody LoungerI fully accept all your comments. I understand the faults in the way I have structured the data but I was young then…… It reminds me of the old Irish joke along the lines of ‘How do I get to Dublin?’ ‘I wouldn’t start from here!’
Hans solution is perfect. Just what I was striving for before I got lost in the complexity of writing an expression. Why I didn’t think of using a seperate query I’ll never know.Thanks to you both for your interest & help.
-
IanDarkwater
AskWoody LoungerI have used Francois solution which he helped me with some time ago & have been very happy & impressed with it!
-
IanDarkwater
AskWoody LoungerChanging the data type is the best solution.
If you really want to keep it as text you could parse out the year in a query with Right(YourData, 4) & then sort on the result. This would order on the year only.
-
IanDarkwater
AskWoody LoungerChanging the data type is the best solution.
If you really want to keep it as text you could parse out the year in a query with Right(YourData, 4) & then sort on the result. This would order on the year only.
![]() |
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
-
*Some settings are managed by your organization
by
rlowe44
5 hours, 17 minutes ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
7 hours, 31 minutes ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
7 hours, 56 minutes ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
16 hours, 57 minutes ago -
AI slop
by
Susan Bradley
16 hours, 7 minutes ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
18 hours, 13 minutes ago -
Two blank icons
by
CR2
3 hours, 47 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
1 day, 3 hours ago -
End of 10
by
Alex5723
1 day, 5 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
3 hours, 42 minutes ago -
test post
by
gtd12345
1 day, 11 hours ago -
Privacy and the Real ID
by
Susan Bradley
1 day, 1 hour ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
18 hours, 2 minutes ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
1 day, 16 hours ago -
Upgrading from Win 10
by
WSjcgc50
3 hours, 52 minutes ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
7 hours, 25 minutes ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
2 days, 7 hours ago -
The story of Windows Longhorn
by
Cybertooth
1 day, 19 hours ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
2 days, 9 hours ago -
Are manuals extinct?
by
Susan Bradley
3 hours, 28 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
2 days, 18 hours ago -
Network Issue
by
Casey H
2 days, 6 hours ago -
Fedora Linux is now an official WSL distro
by
Alex5723
3 days, 6 hours ago -
May 2025 Office non-Security updates
by
PKCano
3 days, 7 hours ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
3 days, 9 hours ago -
pages print on restart (Win 11 23H2)
by
cyraxote
2 days, 10 hours ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
3 days, 11 hours ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
3 days, 11 hours ago -
Proton to drop prices after ruling against “Apple tax”
by
Cybertooth
3 days, 18 hours ago -
24H2 Installer – don’t see Option for non destructive install
by
JP
3 hours, 58 minutes 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.