Skip to content
Advertisement

Tag: ms-access

Undefined variable at ‘Incdntno.Value’

I am having trouble getting this to compile, it keeps giving an undefined variable error during compile at ‘Incdntno.Value’. I tried to Dim Incdntno as Integer but then was getting Invalid qualifier. I have a similar code that works (see second code block). I didn’t need a lot of what was going in the working code part so I removed

Access UPDATE query using Regular Expressions

I have created the following Regular expression in javascript to test if the string works. which works perfectly fine. However no i have tried to convert this SQL (using the ms access sample database) i have tried the following which hasn’t worked as i get an error. which didn’t work. I think I’ve gone about the wrong approach to the

How to get the count of GROUP BY query?

How can I get the count of a GROUP BY SQL query? This means I has displayed group by house number. I want the count of this group of house numbers. Answer This is only a guess, this would count number of voters per House No., like: And if you want to include the YadiNo (whatever does this mean), you

How can a blank MS Access database be created using VBA?

I’m a total noob trying to create a blank MS Access database using VBA in Excel. I want to name the new database “tblImport”. This is the code I´m using: I get the following error message: “Run Time Error 3001: Application Defined or Object Defined Error” What can I do? Answer The name of the locale constant in the CreateDatabase

Check If Date Falls In Period With Year Unspecified

I’ve got a table that defines several non-overlapping date periods using only month and day. It’s basically a “stocking” table for inventory items that allows you to stock different amounts across the year for seasonal businesses. Here’s an example of how a single item’s stocking table might look. Note that I have an Items table that I’m not showing here.

How to SUM two fields within an SQL query

I need to get the total of two fields which are within the same row and input that number in a field at the end of that same row. This is my code. Is this what the SUM function is used for, or can you only use the SUM function for getting the total of a column? Thanks Answer SUM

Concat SQL result

I’m quite new to SQL and I am using MS Access’s ListBox component which requires a query to display data. The following are the tables involved to make the query: TABLE: Blocks +—-+——–+ | ID | B_Name | +—-+——–+ | 1 | blockF | | 2 | blockE | . . . TABLE: Rooms +—-+——+——–+——-+—–+———+——-+——+ | ID | B_ID |

SQL query with NULL Value Comparison in MS Access

I am trying to compare two tables and output results where a column in table1 and the same column in table2 are not equal. The query looks like this: Column1, Column2, Column3 together form the primary key for the two tables. When Column4 has missing values (null), the corresponding record is not showing up as a mismatch in the resulting

Advertisement