Does VBA contain a comment block syntax?

Although there isn’t a syntax, you can still get close by using the built-in block comment buttons: If you’re not viewing the Edit toolbar already, right-click on the toolbar and enable the Edit toolbar: Then, select a block of code and hit the “Comment Block” button; or if it’s already commented out, use the “Uncomment … Read more

MS Access error: relationships must be on same number of fields with the same data types

Make sure you have your VendorID set as the same datatype in both the tables. N.B: Even if it is stored as a number, make sure they are both long integers. The duplicates shouldn’t prevent you from creating a relationship: duplicates restrict only when you try and create a relationship with referential integrity.

How do you trouble shoot a “Data type mismatch in criteria expression” error in MS Access 2010?

The criteria expression is the part of the query containing the conditions, as in WHERE <condition>. Look at those specifically. The error message means you’re comparing two things (this equals that, or this less than that, etc.) that are of two different, and incompatible types (comparing a number to a string, for example). You can find … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)