-
WSready4data
AskWoody LoungerThanks Wendel, Hans
After reading your replies I ended up doing something different.
Created a temporary table to hold the data then append the data to the table with the correct datatype.
Finally delete the temporary table.
Thanks for your help,
Scott -
WSready4data
AskWoody LoungerThanks Charlotte,
The split function did the trick. I have some users of Access97 and I was able to find this split
function on the Lotus web site. It works in Access97
Here it is for anyone interested.Function Split(splitstr As String, delim As String, includeempties As Variant) As Variant
Dim words() As String
Dim holder As String
Dim x As Integer
Dim counter As Integer
Dim laststop As Integer
On Error GoTo errorhandler
ReDim words(0) As String
laststop = 1
For x = 0 To (Len(splitstr) – 1)
holder = Mid$(splitstr, x + 1, 1)
If (x 0) Then
If (Mid$(splitstr, x, 1) = delim) Then
If (includeempties = False) Then
laststop = x + 1
GoTo getnext
End If
End If
ElseIf ((x = 0) And (holder = delim)) Then
If (includeempties = False) Then
laststop = x + 1
GoTo getnext
End If
End If
If (x = Len(splitstr) – 1) Then
If (holder = delim) Then
words(UBound(words)) = Mid$(splitstr, laststop, (x + 1) – laststop)
laststop = x + 2
ReDim Preserve words(UBound(words) + 1) As String
Else
words(UBound(words)) = Mid$(splitstr, laststop, (x + 2) – laststop)
laststop = x + 2
ReDim Preserve words(UBound(words) + 1) As String
End If
Else
If (holder = delim) Then
If (x Len(splitstr) – 1) Then
words(UBound(words)) = Mid$(splitstr, laststop, (x + 1) – laststop)
laststop = x + 2
Else
words(UBound(words)) = Mid$(splitstr, laststop, x – (laststop – 1))
End If
ReDim Preserve words(UBound(words) + 1) As String
End If
End If
getnext:
Next x
If (UBound(words) > 0) Then
ReDim Preserve words(UBound(words) – 1) As String
Else
words(0) = “”
End If
Split = words
Exit Function
errorhandler:
words(0) = “”
Split = words
Exit Function
End Function -
WSready4data
AskWoody LoungerMark,
Here is an application from VBCode.com for scanners.
Maybe you can adapt it in access
Scott -
WSready4data
AskWoody LoungerSteve,
Here is an example of open dialog box in Access97
Copy the API and the code on the form to suit your needs
Scott -
WSready4data
AskWoody LoungerPaul,
A new table is added each month with a new table name using the mm/yyyy_RMAP30 format.
I guess I’ll stick to the original idea of importing, copying to the back end and then deleting the original.
Thanks,
Scott -
WSready4data
AskWoody LoungerPaul,
I’m working from the front end of the database using:
DoCmd.TransferText acImportDelim, “RMAP_IMPORT”, Format(strDATE, “MM/YYYY”) & “_” & “RMAP30”, “C:” & Format(strDATE, “MM”) & “_” & “RMAP30.TXT”
to import. It imports into the front end not the back end like I need it to.
Scott -
WSready4data
AskWoody LoungerHow do you import to a linked table?
Scott -
WSready4data
AskWoody LoungerPaul,
As long as it gets put into the back end.
Scott -
WSready4data
AskWoody LoungerStewart,
I dont see any reference to GetCodeDBPath_TSB()
Can you provide?
Thanks,
Scott -
WSready4data
AskWoody LoungerHans,
Many thanks. Up and working.
Scott -
WSready4data
AskWoody LoungerThanks Hans,
Here is another * to ad to your 4 Star rating
Scott -
WSready4data
AskWoody LoungerCecilia,
I don’t think a input mask can accept an underscore( _ )
If they type in ATLANTA GA or type in HOME DEPOT in the field, I want to reject it.
They should type in ATLANTA_GA or HOME_DEPOT as the instructions say.
The longest the string of characters would be is about 20.
Scott -
WSready4data
AskWoody LoungerLooking for code in the BeforeUpdate event to check for the conditions listed above.
I could do it with a select case stmt but I would have to have it check for all the characters in the string
except the ones that I wanted. Or use instr to search for everything I don’t want.
I was looking for an easier way.
Maybe I’m not explaining myself clear enough. If input A to Z or _, msgbox “Use only A to Z or _” -
WSready4data
AskWoody LoungerCecilia,
Not an Input mask. I want to restrict the user from entering other than A to Z or an underscore.
I don’t want them to be able to enter a * ,& , %, any other punctuation, or a space.
The input is used in some code to generate some tables and do some other processing and the non alphabet characters cause errors.
Scott -
WSready4data
AskWoody LoungerGary,
I’m entering the info into a field on a form then does some VBA processing
Thanks
![]() |
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
-
Oracle kinda-sorta tells customers it was pwned
by
Nibbled To Death By Ducks
2 hours, 27 minutes ago -
Global data centers (AI) are driving a big increase in electricity demand
by
Kathy Stevens
12 hours, 47 minutes ago -
Office apps read-only for family members
by
b
15 hours, 24 minutes ago -
Defunct domain for Microsoft account
by
CWBillow
12 hours, 15 minutes ago -
24H2??
by
CWBillow
2 hours, 27 minutes ago -
W11 23H2 April Updates threw ‘class not registered’
by
WindowsPersister
1 day ago -
Master patch listing for April 8th, 2025
by
Susan Bradley
18 minutes ago -
TotalAV safety warning popup
by
Theodore Nicholson
12 hours, 12 minutes ago -
two pages side by side land scape
by
marc
2 days, 13 hours ago -
Deleting obsolete OneNote notebooks
by
afillat
2 days, 15 hours ago -
Word/Outlook 2024 vs Dragon Professional 16
by
Kathy Stevens
1 day, 18 hours ago -
Security Essentials or Defender?
by
MalcolmP
1 day, 20 hours ago -
April 2025 updates out
by
Susan Bradley
1 hour, 55 minutes ago -
Framework to stop selling some PCs in the US due to new tariffs
by
Alex5723
1 day, 14 hours ago -
WARNING about Nvidia driver version 572.83 and 4000/5000 series cards
by
Bob99
1 day, 4 hours ago -
Creating an Index in Word 365
by
CWBillow
2 days, 6 hours ago -
Coming at Word 365 and Table of Contents
by
CWBillow
18 hours, 56 minutes ago -
Windows 11 Insider Preview Build 22635.5170 (23H2) released to BETA
by
joep517
3 days, 10 hours ago -
Has the Microsoft Account Sharing Problem Been Fixed?
by
jknauth
3 days, 13 hours ago -
W11 24H2 – Susan Bradley
by
G Pickerell
3 days, 15 hours ago -
7 tips to get the most out of Windows 11
by
Alex5723
3 days, 13 hours ago -
Using Office apps with non-Microsoft cloud services
by
Peter Deegan
3 days, 6 hours ago -
I installed Windows 11 24H2
by
Will Fastie
1 day, 13 hours ago -
NotifyIcons — Put that System tray to work!
by
Deanna McElveen
3 days, 19 hours ago -
Decisions to be made before moving to Windows 11
by
Susan Bradley
12 hours, 21 minutes ago -
Port of Seattle says ransomware breach impacts 90,000 people
by
Nibbled To Death By Ducks
4 days, 3 hours ago -
Looking for personal finance software with budgeting capabilities
by
cellsee6
3 days, 11 hours ago -
ATT/Yahoo Secure Mail Key
by
Lil88reb
3 days, 11 hours ago -
Devices with apps using sprotect.sys driver might stop responding
by
Alex5723
4 days, 20 hours ago -
Neowin – 20 times computers embarrassed themselves with public BSODs and goofups
by
EP
5 days, 4 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.