10,850 questions
2 votes
0 answers
136 views
Using two words in LIKE operator (eg.: %John%Doe%) VB6
TL;DR Is it possible to search for matches using two words in LIKE operator? Eg.: rsCustomers.Filter("Name LIKE '%John%Doe%'"). I have this ADODB.Recordset called rsCustomers that persists ...
2 votes
0 answers
165 views
Why doesn't Win32 dialog recognize controls reparented from other windows for mnemonic navigation?
I'm developing a module for Visual Basic 6.0 (or TwinBASIC) that allows us to use Windows Common Controls' PropertySheet and CreatePropertySheetPage functions with Visual Basic forms instead of Win32 ...
-3 votes
1 answer
85 views
Visual Basic 6 boolean inside while [closed]
In Visual Basic 6 the expression Not myList inside the While have what meaning? True or false? myList = vbFalse Do While Not myList
1 vote
1 answer
77 views
Issue with expression using IIF with multiple parameters
I am trying to create an expression with an IIF statement: 1st condition that takes a parameter minus 1 = field1 2nd condition takes another parameter = 'field2 true false I have tried to use switch, ...
3 votes
0 answers
674 views
"Not a valid password" error in Access97 database in Windows 11
In Windows 11 version 24H2, access 97 database is frequently not read due to update of jet engine related files. Access 97 database throws "Not a valid password" error even though there is ...
2 votes
1 answer
102 views
System.IO.FileNotFoundException using another assembly in ComInterop project
I am getting the following exception when using another assembly from a ComInterop assembly: System.IO.FileNotFoundException: Could not load file or assembly 'Wpf.Tools.CSharp (...)'. The system ...
3 votes
1 answer
171 views
VB6 Adding or removing a database password using DAO
I have a large VB6 application (I know - it's ~750 kLOC, and I do have an exit strategy, but I need to limp along with this a bit longer) using DAO (higher performance for single user than ADO). I ...
0 votes
0 answers
26 views
"Object required" error with.NET 8 ComVisible object created with CreateObject() [duplicate]
I've created a simple counter class using .NET 8 and C#: SimpleCounter.cs using System.Runtime.InteropServices; namespace Counters { [ComVisible(true)] [Guid("01FB5599-3CD1-462E-98AA-...
2 votes
1 answer
117 views
How to address controls in Powerpack (OvalShape) programmatically, worked in VB6, not in VB.NET
I have some VB6 code that I am migrating to VB.NET. First to VS 2008 and then to VS 22. I have some subs that address controls programmatically, to be somewhat efficient. I am a hobbyist programmer so ...
0 votes
0 answers
65 views
VB6 crViewer Zoom not working after manual Zoom change
I have a vb6 program where users can look through multiple reports by clicking a next or previous button. A request has been made to load the subsequent report at the same zoom level of the current ...
6 votes
2 answers
221 views
Ctrl+Break stop working in VB6 (suspect KB5058499)
After applying KB5058499, the Ctrl+Break keyboard shortcut in Visual Basic 6 stopped working (Windows 11 Pro 24H2 26100.4188). Ctrl+Break is the native shortcut to pause code execution in the VB6 IDE. ...
1 vote
1 answer
80 views
Copy a Detail and Paste it to multiple textbox?
So i would like to create a application where i can record multiple information at one paste to my textbox, Is it possible to copy a details and the word was seperated with tab and paste it to ...
1 vote
0 answers
76 views
VB6 and Word object
I am using vb6 and word document created from template (.dot) files. Every thing works fine will Office 2016. but now Office 2019 and later version is creating problem. It shows various errors like (...
2 votes
0 answers
159 views
How do I write to a VB6 byte array instead of to a filepath with UNO / LibreWriter API?
I use the following code to save my LibreWriter document to disk. It works fine: Public Sub SaveToPath(ByRef oSM As Object, ByRef oDoc As Object, ByVal uFilepath As String) Dim Args(0 To 1) As ...
2 votes
1 answer
97 views
vb6 : split unicode text file to smaller files of maximum specified size
I have a big file of text, lines by lines ended with a chr(13) in Windows. I want to store the text in the access mdb file memo field which has a max size limit of 64K only. The text file contain ...