-
WSjohnhutchison
AskWoody Loungeri Don’T KNOw anY moRe. alL the Old ruLeS see TO hAve BeeN turNEd ∩dsıpǝ poʍu.
-
WSjohnhutchison
AskWoody LoungerMarch 19, 2012 at 5:49 pm in reply to: Show line in a report based on a control being visible #1325708NULL is not a value. Rather it is the absence of a value.
So you can’t say: If txtpad.Value = Null Thenrather you need to use
If isNull(me.txtpad) Then -
WSjohnhutchison
AskWoody LoungerI agree that use a File Picker is a good idea. This is the sort of form I use for importing from Excel.
I separate the file selection from the import using a Browse button, and have a Check Data in Excel button so the user can double check the file before importing.
I find importing from Excel much more problematic than you would expect. The column headings need to be just right, and people seem to always mess with the templates you give them etc.
-
WSjohnhutchison
AskWoody LoungerI don’t have access to 2003 at the moment, but in 2007 (and 2010) there is an option that controls this:
-
WSjohnhutchison
AskWoody LoungerYou many need to change
And also perhaps add an x to the end of this.
zXLFPath = “G:ExcelArchives” & zXLFName & “.xls”
and also check that the file exists:
If dir(zXLFPath) “” then
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel12, “Student_Table_Import”, zXLFPath, True
else
msgbox “The file cannot be found.”
end if -
WSjohnhutchison
AskWoody LoungerI attach a little working demo.
-
WSjohnhutchison
AskWoody LoungerMarch 16, 2012 at 6:09 pm in reply to: MT103 files and exporting individual records to text files #1325430I don’t know anything about MT103 files, but I attach a little demo that opens a recordset based on a query, then outputs each record as a separate text file.
This might get you started. -
WSjohnhutchison
AskWoody Loungerthen put a combo on a form with a RowSource of qryTables. …….
using the combo box wizard I get ” no valid fields can be found in qryTables, please select a new source”I get the same thing. I had not tested this as it did not occur to me that there would be a problem with this.
Here is a workaround. Change the Row Source Type of your combo to Value List then use the following code to fill the values from the query. The code goes in the On Load event of the form. Don’t repeat the Private Sub Form_Load() and the End sub.Code:Private Sub Form_Load() Dim strTableList As String Dim db As DAO.Database Dim rs As DAO.Recordset Set db = CurrentDb Set rs = db.OpenRecordset(“qryTables”, dbOpenSnapshot) If Not rs.EOF Then rs.MoveFirst Do While Not rs.EOF strTableList = strTableList & rs(“Name”) & “;” rs.MoveNext Loop strTableList = Left(strTableList, Len(strTableList) – 1) ‘ Substitute the name of your combo box Me.Combotables.RowSource = strTableList End If ‘ Clean up rs.Close Set rs = Nothing Set db = Nothing End Sub
Also, the first Record is showing f_4F9F14BD3CC24FC9BD1EEA8B81596AC8_Data” instead of a actual table
Don’t know what to make of that. Get your database to show you Hidden and System objects, so you can see the full list of Tables.
Right Click on the top of the Navigation Bar and choose Navigation Options.
30397-NavOptions
Then tick the boxes for Show Hidden Objects and Show System Objects. See what you can find.
Look in MySysObjects (That is the table the query uses.) -
WSjohnhutchison
AskWoody LoungerThe downside is without reducing the height on the picture control when there is no picture every detail line is at least the height of the picture control even when the text requires less than the 2 inch setting.
Hmm. That is not happening for me. Is the Can Shrink property of both the Detail Section and the Memo field set to yes?
30396-IllustratedCatalogue -
WSjohnhutchison
AskWoody LoungerA closing quote should be followed by a space, and an opening one should not.
So you might be able to use Find and Replace to replace an Opening Quote followed by a space with a Closing Quote followed by a space.To actually get them to appear in the Find and Replace Dialog find a correct Closong Quote and copy it. Then find and incorrect one and select it.
Then open Find and Replace, and paste the Closing Quote into Replace with box. -
WSjohnhutchison
AskWoody LoungerI suspect you did not paste all the SQL I gave you. It looks like you left out the last bracket. The SQL I posted works for me in 2010.
-
WSjohnhutchison
AskWoody LoungerActually I do have another suggestion.
Instead of changing the Height of the picture in code:
Me!UM_Pic.Height = 0
Me!UM_Pic.Height = 2 * 1440Just change its visibility
Me!UM_Pic.visible = False
Me!UM_Pic.Visible = Trueand just leave the Height permanently at whatever you want it to be.
I don’t know why this should work, but I did make this change in my code.
Initially it did not help, but the report then worked properly when I added the FormatCount code. -
WSjohnhutchison
AskWoody LoungerMarch 15, 2012 at 4:59 pm in reply to: Can a list of the objects within a custom group be printed? #1325215Sorry, it seems that no one has an answer for you.
I believe that Access just does not expose the contents of these groups to VBA (but I would be happy to be proved wrong about this.)
-
WSjohnhutchison
AskWoody LoungerI don’t know whether this helps you (or me)?
The Seek method is very fast because it uses an Index. The FindFirst method just works through the Recordset until it finds something.So the first line of your Seek code specified the Index to use:
rst.Index = “PrimaryKey”
The Index Property of a Recordset is only available for Table Type Recordsets.
-
WSjohnhutchison
AskWoody LoungerWhenever you create a query, Access stores the query as a piece of SQL. In normal use you don’t see it, but you can look at it ( and edit if you want) by switching to SQL view of a query. You don’t say what version of Access you use…the method of viewing the SQL is slightly different in different versions. In 2007 and 2010 it is under View on the Home tab.
So start to create a new query the normal way. The Show Table dialog pops up for you to add tables to the query. Close it without adding any tables, then immediately switch to SQL view of this query.
You will just see Select; Delete this and paste in the SQL I posted.
Test the query works by switching to datasheet view. Save it as (say) qryTables.
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
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 Excel 2019 Now Prompts to Back Up With OneDrive
by
lmacri
2 hours, 45 minutes ago -
Firefox 139
by
Charlie
2 hours, 1 minute ago -
Who knows what?
by
Will Fastie
31 minutes ago -
My top ten underappreciated features in Office
by
Peter Deegan
22 minutes ago -
WAU Manager — It’s your computer, you are in charge!
by
Deanna McElveen
12 hours, 38 minutes ago -
Misbehaving devices
by
Susan Bradley
2 hours, 30 minutes ago -
.NET 8.0 Desktop Runtime (v8.0.16) – Windows x86 Installer
by
WSmeyerbos
1 day, 6 hours ago -
Neowin poll : What do you plan to do on Windows 10 EOS
by
Alex5723
1 hour, 39 minutes ago -
May 31, 2025—KB5062170 (OS Builds 22621.5415 and 22631.5415 Out-of-band
by
Alex5723
1 day, 4 hours ago -
Discover the Best AI Tools for Everything
by
Alex5723
4 hours, 4 minutes ago -
Edge Seems To Be Gaining Weight
by
bbearren
19 hours, 9 minutes ago -
Rufus is available from the MSFT Store
by
PL1
1 day, 3 hours ago -
Microsoft : Ending USB-C® Port Confusion
by
Alex5723
2 days, 6 hours ago -
KB5061768 update for Intel vPro processor
by
drmark
5 hours, 51 minutes ago -
Outlook 365 classic has exhausted all shared resources
by
drmark
4 hours, 34 minutes ago -
My Simple Word 2010 Macro Is Not Working
by
mbennett555
2 days, 1 hour ago -
Office gets current release
by
Susan Bradley
2 days, 4 hours ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
3 days, 18 hours ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
3 days, 3 hours ago -
Stop the OneDrive defaults
by
CWBillow
3 days, 19 hours ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
4 days, 5 hours ago -
X Suspends Encrypted DMs
by
Alex5723
4 days, 7 hours ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
4 days, 7 hours ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
4 days, 8 hours ago -
OpenAI model sabotages shutdown code
by
Cybertooth
4 days, 8 hours ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
3 days, 21 hours ago -
Enabling Secureboot
by
ITguy
4 days, 4 hours ago -
Windows hosting exposes additional bugs
by
Susan Bradley
4 days, 16 hours ago -
No more rounded corners??
by
CWBillow
4 days, 12 hours ago -
Android 15 and IPV6
by
Win7and10
4 days, 2 hours ago
Recent blog posts
Key Links
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
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.