-
WSCronk
AskWoody LoungerI think the original post indicated there was only one table.
What the user wants to do is disply one record but not including a memo field in one form on the left hand screen, and the memo field in a second form on the right hand screen.
The simplest would be to put in the OnCurrent Event of the Main form
Forms!SlaveForm.Filter=chr(34) & “OwnerID=” & me.OwnerID & chr(34) -
WSCronk
AskWoody LoungerJuly 6, 2012 at 10:30 pm in reply to: Concatenating multiple records into a single text box #1339640And don’t use padding. Use vbCrLf to start the next comment on a new line. Or two of them to have a separator line.
-
WSCronk
AskWoody LoungerWhat is supposed to happen on Tuesday if the day before was a public holiday? If you want to cater for non work weekdays, you will need a lookup table of public holidays and the exercise is not a trivial one, do-able but I’d be using VBA to get the date of the previous work day.
-
WSCronk
AskWoody LoungerCan you delete a record manually to check there is no locking in place?
-
WSCronk
AskWoody LoungerAlternatively
Dim db as database
Set db = DBEngine(0).OpenDatabase(“C:PathYourBackend.mdb”)
Debug.Print db.TableDefs(“tblYourTable”).DateCreated -
WSCronk
AskWoody LoungerWhy not use a query with criteria
Between Date()+1 AND DateSerial(Year(Date()), Month(Date())+2,0) -
WSCronk
AskWoody LoungerThe Split function will generate a string array, and in this case with email addresses, the first item will be the user name and the second the “domain” name.
Looking at the comment next to the docmd.openquery “Leg E-news_append”, you only want the “domain”.
If so, Split is not the best function.
Use
domain= mid(strEmailAddress, instr(strEmailAddress,”@”) +1)This will find the position of the @ in the email address, and give only characters after that position.
-
WSCronk
AskWoody LoungerI have worked on some Access databases where the original developer used some pretty complex queries generated by the query builder.
So while VBA is not the only way, IMO VBA is the must way to go for simplification of debugging.
Cronk
-
WSCronk
AskWoody LoungerAnd you could loop through all the files in the folder using Dir to process them without prompting for file names
Code:strFile = Dir(strFolderPath & “*.xls”) Do While strFile “” strFileFullName = strFolderPath & “” & strFile DoCmd.TransferSpreadsheet …..,strFileFullName,… Kill strFileFullName strFile = Dir Loop
-
WSCronk
AskWoody LoungerYou could use
Expression is [Text2]=”A” Or [Text2]=”B” Or [Text2]=”C” -
WSCronk
AskWoody LoungerThis way you can have the account code much longer if you want.
-
WSCronk
AskWoody LoungerI’ve never used Seek. Seek would be presumably be faster than FindFirst if the former is based on an index. But then there is the time to open the direct link to the backend.
I must remember this in future and check where search times are critical.
I’m glad the initial query was raised.
-
WSCronk
AskWoody LoungerYou could have avoided using the hidden text box by using
=Nz(Round([fsubMaterials].[Form]![txtMaterials],2),0)+ (1 + [txtMarkupAmt])BTW, are you aware that if [fsubMaterials].[Form]![txtMaterials] has a null value, then Nz([fsubMaterials].[Form]![txtMaterials],2) will result in a value of 2?
Cronk
-
WSCronk
AskWoody LoungerMaybe you are backing up an older version of the data.
I’d suggest you try and locate the mdb data file that your VB6 application is connected to.
You could do this by closing everything else, then opening your VB6 application and going to a record currently existing in your data. This should open the connection to your mdb and the ldb locking file should be created. (Whenever you open an mdb which is read/write an ldb file is created eg if your data file is XXX.mdb, a file XXX.ldb is created in the same folder).
I would search for this ldb file and backup the corresponding mdb.
Hope that is of assistance.
Cronk
-
WSCronk
AskWoody LoungerThe source data field must be a text field and if the field in MS Access containing the imported data, drops any leading zero, it is a numeric field.
Change the Access field to text.
It is a common misunderstanding that an all digit field should be considered numeric. US and Australian zip/post codes are all digits but you never do numeric operations on them, similarly telephone numbers. These are text data and in all my systems are treated as such.
![]() |
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
-
Ascension says recent data breach affects over 430,000 patients
by
Nibbled To Death By Ducks
1 hour, 26 minutes ago -
Nintendo Switch 2 has a remote killing switch
by
Alex5723
1 hour, 46 minutes ago -
Blocking Search (on task bar) from going to web
by
HenryW
6 hours, 27 minutes ago -
Windows 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
11 hours, 34 minutes ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
11 hours, 41 minutes ago -
regarding april update and may update
by
heybengbeng
13 hours, 10 minutes ago -
MS Passkey
by
pmruzicka
58 minutes ago -
Can’t make Opera my default browser
by
bmeacham
20 hours, 50 minutes ago -
*Some settings are managed by your organization
by
rlowe44
7 hours, 33 minutes ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
19 hours, 45 minutes ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
1 day, 15 hours ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
2 days ago -
AI slop
by
Susan Bradley
14 hours, 32 minutes ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
2 days, 1 hour ago -
Two blank icons
by
CR2
13 hours, 27 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
2 days, 10 hours ago -
End of 10
by
Alex5723
2 days, 13 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
1 day, 11 hours ago -
test post
by
gtd12345
2 days, 19 hours ago -
Privacy and the Real ID
by
Susan Bradley
2 days, 9 hours ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
11 hours, 47 minutes ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
2 days, 23 hours ago -
Upgrading from Win 10
by
WSjcgc50
1 day, 11 hours ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
1 day, 14 hours ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
3 days, 15 hours ago -
The story of Windows Longhorn
by
Cybertooth
3 days, 3 hours ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
3 days, 17 hours ago -
Are manuals extinct?
by
Susan Bradley
17 hours, 39 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
4 days, 2 hours ago -
Network Issue
by
Casey H
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.