ms-access-2007

Create Directory for records in MS Access 2007

Hi there, Is it possible to create a directory folder for individual records in Access 2007. For example tblUser ID firstName surName When adding a record, would create a folder C:\userdatabase\Surname,firstName,ID Could see this being useful in situations for example where a large amount of images/files would need to be associated ...

Get Autonumber from newly inserted record in Access 2007 using Enterprise Library 4.1

It's been ages since I last used Access as a back end but I'm being forced to. I'm using Enterprise Library 4.1, the Data Access Application Block.. with .NET 3.5 and I wanted to know the best way (code sample if possible) to write an insert query that will automatically give me the newly inserted auto-number back..or if it's not possibl...

Microsoft Access 2007: Export to multiple xml files

I have a table in my access database and I want to export each record to a single xml file. How can I achieve this?The only option I found was exporting the whole table to a single xml file. ...

MS Runtime required for app to run, how can I include with setup?

My application requires access to be installed on the computer or at least the MS Access runtime. Is their a way to include that with the application to check for that component/resource or install it if it isn't? Or would it just be easier to include a link to tell the user where to get the runtime if the error happens? I am using V...

Linking individual queries in a unbound listbox in ACCESS 2007

I have created a unbound listbox. I have the box showing a list of queries I want the use to be able to select. My problem is I don't understand how to get the submit button to select the currently selected query and run it. So how do I link the submit button to the listbox and have each item in the box submit its own query. ...

MS Access 2007: Specify Max Length for TextBox on a Form

How do I specify Max Length for TextBox on a Form? ...

Displaying an image.

I am using vb.net running a backend MS.Access database and I am wondering what is the code that I can use to display a picture of an image when the field name is selected. My MS Access "field" name is Cars_Types: in the files I have the data "GM, Chrysler, Toyota, Honda, and Ford". The name of my database is ModelCars.accdb The pict...

Subform has default view set to Continuous - Cantmake height expand Automatically

Hi, I have a subform on a form and its default view is set to 'continuous form'. How do I make the form, and thus its parent form, expand its height automatically to accommodate all applicable records. Thanks in advance to anyone who can help Noel ...

Using INSERT INTO and setting one field value - Access VBA

Hi, I'm using INSERT INTO to copy rows of data from one table to another: INSERT INTO tblNewCustomers (CustomerID, [Last Name], [First Name]) SELECT CustomerID, [Last Name], [First Name] FROM tblOldCustomers How can I set one of the field values in tblNewCustomers for all of the new records that I am importing in withn this statement...

Need to remotely create an ODBC connection to a SQl server.

I have an Access 2007 database with a table in it that is linked to a SQL server. I need to roll this version of the database out to approximately 10 people in different states. In order to do that, they need an ODBC connection to the SQL server installed on their machines. I am looking for a way to do this remotely. Either through VBA i...

Linking Access records to Excel files

I've been trying to create a complete system using MS Access, but i really need to use the functionality of excel spreadsheets. I wish to do the following; when I create a record, i create a directory for that record, and copy an excel spreadsheet to that directory. The spreadsheet will be able to link to the corresponding record. So ...

How can I Export a Table in Access using VBA into a specific sheet in an Excel spreadsheet?

I have a some tables, we will call them Table1,Table2.... and I need them to be Exported into specific spreadsheets in a macro enabled Excel File (.xlsm) that already exists. So I would need to put Table1 into Sheet2, Table2 into Sheet3... and so on. I had been doing this manually by going to the export menu in Access but it is getting m...

Access 2007: Dynamic SQL to be run when opening a report

I'm trying to have some SQL execute when I open a report. This works fine when I try to match on a column that's an integer with an integer, but when I try to match on a "text" column, it keeps popping up a dialog asking for what you want to filter on. Here's a somple query: select person_phone_numbers.person_id from person_phone_numb...

Access 2007 not allowing user to delete record in subform

Good day... The root of my issue is that there's no context menu allowing the user to delete a row from a form. The "delete" button on the ribbon is also disabled. In Access 2003, apparently this function was available, but since our recent "upgrade" to 2007 (file is still in MDB format) it's no longer there. Please keep in mind I'm ...

Unable to remove master -> child subform links in microsoft access 2003

Hi, I am having an issue removing the master -> child link fields in an access subreport data form. I have tried every avenue to remove them, using the properties window of the subreport as well as the link wizard. I have also deleted the subreport from the database and then gone as far as re-importing the existing objects into a new ...

How to merge data from two separate access 2007 databases

Hi, I have two identical databases with same structure, database a in computer a and database b in computer b. The data of database a*(a.accdb)* and database b*(b.accdb)* are different. then in database a i have for example ID:1, 2, 3 and in database B i Have ID:4,5,6 Then i need merge these databases data in only one database(a or b, ...

Configuration can't save design changes or save to a new database object because another user has file open

I have a MS Access database with few tables and a form. When more than one user tried to save changes to data - I get this error: "Configuration can't save design changes or save to a new database object because another user has file open" Not sure why this is happening, since the design is not being changed just a data. Any thoughts?...

isPostBack as Query Parameter

I created an ASPX page with search controls to the left bound as controls for an AccessDataSource. I want the data grid to be blank on the first calling of the page, but show the results for subsequent page loads. I plan to achieve this by putting [pFirstRun] = False as my first WHERE condition with the parameter pFirstRun tied to the ...

Access 2007 and Special/Unicode Characters in SQL

I have a small Access 2007 database that I need to be able to import data from an existing spreadsheet and put it into our new relational model. For the most part this seems to work pretty well. Part of the process is attempting to see if a record already exists in a target table using SQL. For example, if I extract book information o...

Best practices for implementing an Access (2007) application

Hello, Where can I find an overview (website) of best practices for implementing an Access (2007) application (with a FE/BE architecture) regarding to security, performance and maintainability? I know about designing tables, queries, forms and so on and I'm a reasonable programmer, but I'm wondering what's the "best" and most efficient ...