ms-access-2007

Read WMF file from db, convert to bitmapped image

I have realized that my first question won't be answerable, since php can't deal with this format: http://stackoverflow.com/questions/1376103/how-to-convert-metafilepict-to-bitmapped-image-in-php, so I have a C# console application that will just load up the images, from either an MS SQL 2008 db, or Access 2007, and then save them to a d...

How do I compact and repair an ACCESS 2007 database by .NET code?

Hi all, I need to compact and repair an Access 2007 .accdb database file. I know that JRO.JetEngine can do this with .mdb files, but I need to repair the newer version 2007 format by code. Any suggestions? EDIT: Here is the thing: I found that I can use the COM object library "Microsoft Office 12 Access Database Engine Object Library...

Build a field-lookup-query using the value of another field.

Hello! Creating a mini-database with access, i came across this problem: For the background, i have two tables: Table: Items and Table: Actions ID(PK) Name ID(PK) Name ------------------ ---------------- 1 Thing1 1 Move 2 Thing2 2 Delete 3 ...

Linking SQL Server view into Access db: performance question

When you attach a SQL Server view as an MS Access linked table, you are asked for a unique identifier. During recent trials, I noticed that on several occasion, NOT defining the unique identifier has the effect that the linked table opens much more quickly (you don't need a stopwatch, you can really SEE it). So I am asking the experts...

Is it possible to change the font in the SQL edit window in Access 2007?

It would be nice if there was a right-mouse-click menu on the edit panel to change the font size, but there isn't. Is there a system setting somewhere else that lets me increase the default font size? ...

MS ACCESS query using form to build WHERE clause

I need to be able to read a combo box to determine to column to use for a where clause. Simple example would be SELECT * FROM TABLE WHERE [Forms]![frmNameWhatever]![ComboTime] BETWEEN [blah]![blah]![blah] AND [blah]![blah]![blah] blah blah blah works... The first part, right after the where, returns zero rows... Am i using the wrong syn...

Remind me Friday, what I should see on the weekend

I have the following query set up, in various incarcerations, to remind me of contract expirations 0, 7, 30, 60, and 90 days before the confirmed expiration date. My method of calculating the notification date doesn't give me any flexibility. For example, say I have 30 contracts expiring 12/5, a Saturday when my office isn't open. I w...

Access 2007 Wizards won't run

Every time I try to run a Wizard in Access 2007 a dialog box pops up saying the following: The database cannot be opened because the VBA project contained in it cannot be read. The database can be opened only if the VBA project is first deleted. Deleting the VBA project removes all code from modules, forms and reports. You should bac...

Access 2007 Date Picker in Ribbon Input Control

I was wondering if there was any way to implement the date picker in Access 2007 as a control in the ribbon. I've already created a custom tab for the ribbon that replaced my main form, but since almost all of the application's functions depend on a start and end date, I still need the user to be able to input these somewhere convenient...

ACCESS 2007: Determine maximum value per row across multiple columns

I have a table with multiple date columns per employee: Emp 1, Date1, Date2, Date3 Emp 2, Date1, Date2, Date3 etc. I would like to write a single query that returns to me the maximum date of the three dates available on a per-employee basis. I understand I need to write a UNION ALL query but I can't seem to get the syntax so t...

Wildcard characters in queries randomly switching between Access * and Ansi %

BACKGROUND: I have an Access 2007 application, with a form which builds a Filter string to pass to a Report, which uses a stored query. In Access Options, I have "SQL Server Compatible Syntax (ANSI 92)" checked for This database, and the Filter string includes a LIKE clause with % wildcard characters. ISSUE: Randomly when I save or...

MS Access Convert like function to Memo Data Type

I need to use rich text formatting for a field in a report in MS Access in order to use character spacing. In the report, attempting to change the Text Format in the field's properties from Plain Text to Rich Text Produces the error: "The setting you entered isn't valid for this property." I presume that is because the field is not a mem...

MS Access: list macro from VBA

I have to deal with a few macros (not VBA) in an inherited Access application. In order to document them, I would like to print or list the actions in those macros, but I am very dissatisfied by the way Access does it. Therefore I want to make my little piece of code to list the macros, their instructions list and parameters to the de...

Hiding columns in a Microsoft Access 2007 datasheet with VBA

I am trying to hide specific columns in an Access 2007 split form through code. I need the form to check certain conditions to see whether it needs to display a column or not. I have code in the form's 'Activate' event to hide the column like this: txtControl.ColumnHidden = True This code works in the "Open" event, but if I hide the c...

Access Creates new file every time I Compact & Repair

It didn't always do this, but ever since I split my database and made the front-end an ACCDE file, any time I try to compact and repair either file, a new file called "Database 1" is generated and my original file size doesn't change. Is this normal? My ACCDB is roughly 20MB, and my ACCDE is just over 1M after being used the first time...

Error: Cannot got to specified record. Access 2007 and SQL 2005

I have inherited an Access 2007 database that has been split so the tables are on a SQL 2005 server. The database consists of 3 tables and 3 forms. The main form that is used reads and writes to all 3 tables. Data can be edited and deleted OK but trying to add a new record throws an error saying, "You can't go to the specified record"...

Visual C# 2008. CRUD Example using Dataset, DataRow with an Access Mdb

I'm using Visual Studio C# 2008 I've created (visually) a dataset that points to a mdb file (Access 2007) This DataSet is called "EstacionarDataSet" EstacionarDataSet ed = new EstacionarDataSet(); DataRow newRow = ed.Tables[0].NewRow(); newRow["patente"] = tb_Patente.Text; newRow["numerobox"] = tb_Box.Text; newRow["fechahora_ingreso"] =...

Access 2007 one-to-two columns referential integrity

Setup: One table called documents with columns author_id and reviewer_id (among others). One table called users with column user_id. I need to create two referential integrity links: One-to-many between user_id and author_id. One-to-many between user_id and reviewer_id. In other words, these two columns in documents are independent of ...

ms access replication id as foreign key

I am currently "forced" to create a database in ms access 2007. Due to replication issues i have decided to use autonumber as ReplicationID for my Users table. On my venues table i would like to use this id as the user created. I have tried to use the userID in textboxes accross the main form, but it outputs {guid {BF40D0A0-A1F3-4C9...

How to show File Picker dialog in Access 2007?

I want to show a dialog where the user can pick a file, click OK, and then the path to the file will be saved in the database. I have just one problem, I can't figure out how tho show the dialog window. Do you? ...