Visual Basic Q&A

As a software engineer, I focus on .NET, especially asp.net, C#, WCF and so on, and I am also very interested in Search Engine Optimization.

Entries Tagged ‘visual basic’

PRB: Error Setting Field Format Property of Access Tables

Symptoms
From Visual Basic, when trying to specify a field Format property of anAccess table (for example, field type DateTime) from blank to “Long Date”format, the following error occurs:

Run-time error ‘3421′:
Data type conversion error.
Resolution
The property data type constant should always be “dbText.” If other datatype constants, such as dbDate or dbNumeric are specified, you willencounter the error described above.

FIX: Can’t Have Menu with No Caption Bar/Buttons/Control Box

Symptoms
You can’t add a menu that has no caption, no maximize/minimize buttons,and no control-menu box to a form.
Resolution
This feature is not supported in Visual Basic in Windows version 3.0or 3.1 because of a bug in the Microsoft Windows menu driver thatprevents Windows from painting menus correctly.