According to the online help (search for help on Like Operator), you need to put square brackets around the asterisk, i.e. Like “[*]”.
![]() |
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 |
-
Does any one know how to search for the Asterisk?
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Does any one know how to search for the Asterisk?
- This topic has 2 replies, 3 voices, and was last updated 23 years, 11 months ago.
AuthorTopicWSDouglas Martin
AskWoody LoungerMay 23, 2001 at 8:35 pm #356362Viewing 1 reply threadAuthorReplies-
WSJayden
AskWoody LoungerMay 23, 2001 at 8:55 pm #527271My solution may not be the most elegant, but it works
1. In the table that contains the data create a new ‘yes/no’ field (called it something like ‘FLAG’)
2. Create a new module
3. Add the following Code to the module (replace the , and with the names of the table you wish to search and the field you wish to search and use as the flag.
4. Run this routine. VIOLA, all the fields that have an * at the end of them are CHECKED TRUE in the flag field!
Sub SearchAst()
Dim rstSearchTable As Recordset
Dim strFieldSearch As String
Dim strFieldFlag As StringSet rstSearchTable = CurrentDb.OpenRecordset(“”, dbopentable)
strFieldSearch = “”
strFieldFlag = “”With rstSearchTable
Do While Not .EOF
If Right(.Fields(strFieldSearch), 1) = “*” Then
.edit
.Fields(strFieldFlag) = True
.Update
End If
.MoveNext
Loop
End With
End Sub -
WScharlotte
AskWoody LoungerMay 24, 2001 at 2:38 am #527288Here’s a routine you could use to clean up those offending values:
Public Function ExtractNumFromStr(ByVal strIn As String, _ Optional intStartPos As Integer) As Variant 'Created 2/16/2000 by Charlotte Foust On Error GoTo ExtractNum_err Dim varNum As Variant Dim strNum As String Dim strTemp As String Dim intLoop As Integer ' Get the number portion of the string 'if they didn't pass in a start position 'start at position 1 If intStartPos = 0 Then intStartPos = 1 End If ' intStartPos = 0 'grab the portion of the string to use strTemp = Right(strIn, 1 + Len(strIn) - intStartPos) 'if the string is all numeric 'return the whole string If IsNumeric(strTemp) Then strNum = strTemp 'otherwise, extract the numbers 'from the string Else 'IsNumeric(strTemp) 'step through the string and test 'each character, only returning the numbers For intLoop = intStartPos To Len(strIn) If IsNumeric(Mid(strIn, intLoop, 1)) Then strNum = strNum & Mid(strIn, intLoop, 1) End If 'IsNumeric(Mid(strIn, intLoop, 1)) Next intLoop ' = intStartPos To Len(strIn) 'if no numbers were found, return zero If Len(strNum) = 0 Then strNum = "0" End If 'Len(strNum) = 0 End If 'IsNumeric(strTemp) varNum = clng(strNum) ExtractNum_exit: On Error Resume Next ExtractNumFromStr = varNum Exit Function ExtractNum_err: Resume Next End Function 'ExtractNumFromStr(ByVal strIn As String, _ Optional intStartPos As Integer) As Variant
Viewing 1 reply thread -

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
-
Uninstalr Updates
by
jv16
5 hours, 45 minutes ago -
Apple zero days for April
by
Susan Bradley
1 hour, 2 minutes ago -
CVE program gets last-minute funding from CISA – and maybe a new home
by
Nibbled To Death By Ducks
6 hours, 33 minutes ago -
Whistleblower describes DOGE IT dept rumpus at America’s labor watchdog
by
Nibbled To Death By Ducks
18 hours, 22 minutes ago -
Seeing BSOD’s on 24H2?
by
Susan Bradley
1 hour, 16 minutes ago -
TUT For Private Llama LLM, Local Installation and Isolated from the Internet.
by
bbearren
8 hours, 46 minutes ago -
Upgrade from Windows 10 to 11
by
Holdsworth8
1 day, 3 hours ago -
Microsoft : AI-powered deception: Emerging fraud threats and countermeasures
by
Alex5723
1 day, 5 hours ago -
0patch
by
WSjcgc50
6 hours, 51 minutes ago -
Devices might encounter blue screen exception with the recent Windows updates
by
Susan Bradley
23 hours, 14 minutes ago -
Windows 11 Insider Preview Build 22631.5261 (23H2) released to Release Preview
by
joep517
1 day, 8 hours ago -
Problem opening image attachments
by
RobertG
1 day, 10 hours ago -
advice for setting up a new windows computer
by
routtco1001
2 days, 1 hour ago -
It’s Identity Theft Day!
by
Susan Bradley
1 day, 5 hours ago -
Android 15 require minimum 32GB of storage
by
Alex5723
2 days, 6 hours ago -
Mac Mini 2018, iPhone 6s 2015 Are Now Vintage
by
Alex5723
2 days, 6 hours ago -
Hertz says hackers stole customer credit card and driver’s license data
by
Alex5723
2 days, 6 hours ago -
Firefox became sluggish
by
Rick Corbett
2 days, 3 hours ago -
Windows 10 Build 19045.5794 (22H2) to Release Preview Channel
by
joep517
2 days, 10 hours ago -
Windows 11 Insider Preview Build 22635.5235 (23H2) released to BETA
by
joep517
2 days, 11 hours ago -
A Funny Thing Happened on the Way to the Forum
by
bbearren
1 day, 8 hours ago -
Download speeds only 0.3Mbps after 24H2 upgrade on WiFi and Ethernet
by
John
5 hours, 17 minutes ago -
T-Mobile 5G Wireless Internet
by
WSmmi16
1 day, 8 hours ago -
Clock missing above calendar in Windows 10
by
WSCape Sand
1 day, 10 hours ago -
Formula to Calculate Q1, Q2, Q3, or Q4 of the Year?
by
WSJon5
3 days, 1 hour ago -
The time has come for AI-generated art
by
Catherine Barrett
2 days, 5 hours ago -
Hackers are using two-factor authentication to infect you
by
B. Livingston
2 days, 15 hours ago -
23 and you
by
Max Stul Oppenheimer
2 days, 22 hours ago -
April’s deluge of patches
by
Susan Bradley
1 day, 2 hours ago -
Windows 11 Windows Updater question
by
Tex265
16 hours, 40 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.