ms-access

Access Report - Show Week Ending Date

I have an Access 2000 report based on a query like this SELECT ... FROM Clients AS wc INNER JOIN ... WHERE ((wo.OfferStatusID)=3) AND ((DatePart("ww",[wo.StatusTimeStamp]))=DatePart("ww",[Enter Week End Date])) AND ((Year([wo.StatusTimeStamp]))=Year(Date()))); The where clause allows you to enter the 'Week End Date' and it finds al...

myString = "UPDATE " results in an empty myString

In MS Access assigning a string literal will sometimes result in an empty String The following code Public Sub test() Dim myString As String myString = "UPDATE " Debug.Print "'" & myString & "'" End Sub results in '' this is freaking me out. It only happens sometimes. Other times the "UPDATE " will work, but myString ...

Open MS Access with OLEDB connection string and not have access create the .ldb lock file

I have a program in C# that uses an MS Access database and I'm using OleDb to connect and do queries on that database. My issue is that I have some sensitive info in the database and I don't want it to appear as an Access DB. I changed the extension, but when I open it it still creates the .ldb lock file used by Access. I want to have th...

How do I "chain" linked tables in Access?

My scenario: Computer A has an Access database that contains linked tables. Those linked tables actually reside in another Access database on Computer B. Nothing unusual yet. Now we create a SQL Server database, and establish links to those tables in the Access database on Computer B; we configure a Machine DSN to define the necessary...

Updating access error.

Dim conn As OleDbConnection Dim cmd As OleDbCommand Public Sub openDB() conn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Application.StartupPath & "\VFMS_DB.mdb;" & "Jet OLEDB:System Database=Security.mdw;User ID=Adster;Password=300624;") conn.Open() End Sub Public Functio...

Access VBA Error 2486 DoCmd.Save

We are importing some code modules into an Access 2002 application using the below line in VBA Application.VBE.ActiveVBProject.VBComponents.Import (strFileName) This part works fine, the line immediately following attempts to save the new class to the project. The only way that we can see to do this is using DoCmd: DoCmd.Save acModule...

What do I need to read Microsoft Access databases using Python?

How can I access Microsoft Access databases in Python? With SQL? I'd prefere a solution that works with Linux, but I could also settle for Windows. I only require read access. ...

Import data according to table relationship order

I am trying to create a generic importation VBA function in access database. (I will link the external tables of a similar database and then import their data into the local tables.) For starters, the function should get a list of the tables in the local database, ordered by their primary/foreign key, so as to allow importation based on...

Running count of distinct values in Access

I have data stored as below in an MS Access database: Date User 20090101 1001 20090101 1002 20090102 1001 20090103 1001 20090103 1003 I'm attempting to create a query which shows the daily running count of unique users. For example: Date Daily Count Unique User Running Count 20090101 2 ...

How can I get the field names of a database table?

How can I get the field names of an MS Access database table? Is there an SQL query I can use, or is there C# code to do this? ...

Access Running Sum Question for Numbering a Subreport's Records

I am having difficulty figuring out how to number my subreport's records. I have a main report, which provides indentifying information for one record. Within the main report is a subreport, which provides records assoicated with the main report. I wanted to number these records from one to how ever many records there are. I tried t...

What is the best way to update a MsAccess table in .NET

When several fields in a MSAccess table need to be updated (For instance Salary=Salary*Factor, SomeNumber=GetMyBusinessRuleOn(SomeNumber) etc...),and the update should affect every record in a table, which technique would you use? I have just started to implement this with DataSets, but got stuck (http://stackoverflow.com/questions/8587...

Storing PDFs in MS Access Database using Forms

I need to store PDF files in an Access database on a shared drive using a form. I figured out how to do this in tables (using the OLE Object field, then just drag-and-drop) but I would like to do this on a Form that has a Save button. Clicking the save button would store the file (not just a link) in the database. Any ideas on how to ...

Alternative to Application.LoadFromText for MS Access Queries

I am attempting to load from text files, queries into an MS Access Queries Collection using VBScript. I am using something like this: The code originated from Here. for each myFile in folder.Files objecttype = fso.GetExtensionName(myFile.Name) objectname = fso.GetBaseName(myFile.Name) WScript.Echo " " & objectname & " (" ...

MS-access front end with sybase Sql Anywhere database, pros and cons

Am considering moving my simple ms-access 2003 client server desktop application to one with an ms-access interface and sybase 10 or 11 sql Anywhere backend database. Why? because i want to: - take advantage of the easy & quick way access can build forms and reports (which i am already familiar with ... meaning less learning curve for me...

What encryption method (algorithm) is used for password protecting MS Access 2003 database?

My application uses MS access database to save some sensitive information. Though that information itself is protected, I need to convince a client that there is an another wall of database encryption with strong password that has to be broken first. Do you know which encryption algorithm/method is used for encrypting access database? ...

Redefining the Data Link between a MS Access file and SQL Server

I have a pretty standard database sitting on SQL Server. To manage the data (instead of creating a solution using an IDE) I've linked to the database using MS-Access (4 users as a start. I'm testing a concept and a full solution can be developed once there's enough data). *MS-Access > New file > Project using exiting data... *Specify SQ...

How to get the primary key of an Ms Access table in C#

I need the field or fields (just the name of the field will do) that form the primary key of a Microsoft Access Table, given a connection and a tableName. ...

Specify mdw file in embedded connection string to another Jet mdb: possible?

I can use the following syntax in a Jet (mdb) query to select data from another .mdb file: SELECT * FROM [Database=C:\Tempo\AnotherDB.mdb;].MyTable alternatively SELECT * FROM MyTable IN 'C:\Tempo\Another.mdb' I want to extend this to use workgroup security a.k.a. User Level Security (ULS). I know how to specify a userID and passwo...

Excuting sql sripts on a Access DB

I have a script with a few hundreds of sql queries that I need to execute on an Access DB. Since executing sql queries in Access is IMO quit awkward, you can only execute one at a time and does not recognize comment-lines starting with '--', I would like to know if there exist out there an easier way to do this. Is there a good alternat...