ms-access

How do I create an Access 2003 MDE programmatically or by command line in Access 2007?

I have a legacy Access 2003 database file that must remain in that format to preserve its menus and toolbars. I have recently moved to Access 2007 in my build environment and will be deploying the compiled Access 2003 program with the Access 2007 runtime. In Access 2003, I could script the process of creating an MDE with the Access Devel...

MS Access VB call to Lib "kernel32" fails to stop a process

In the book SQL Hacks from O'Reilly, Hack 44 shows how to tunnel into MySQL from Microsoft Access. I can't get the code that stops the tunnel to work. This is the example code that starts the tunnel: Dim plink As Long Private Sub StartTunnel_Click( ) 'Run plink. Use Linux account details to establish tunnel. plink = Shell("c:\Docu...

Can a Microsoft Access Forms application be switched to work with a SQL back end?

Hi, I was asked to provide an estimation to change a relatively small app designed with MS Access to use a SQL database. First, is this even possible? I never worked enough with Access, so I'd like to know. If it's possible can you please point me to some websites with tutorials regarding this? Second: if it's possible, is it recommen...

After Me.Recalc in Access off-screen values are not displayed

Hi, From VBA I'm setting a series of text boxes to have DSum controlSources: Me.Oct.ControlSource = "=DSum('GBPValue', _ 'MF YTD Actual Income & Adret', _ 'Month=10 AND Org_Type=[Key]')" Me.Nov.ControlSource = "=DSum('GBPValue', _ 'MF YTD Act...

How to write join select query in MSAccess?

Say I have these tables with field names underneath. DailyLeaveLedger dldEmployeeID dldLeaveDate InvoiceHeader invEmployeeID invWeekEnding InvNumberWeeksCovered So I want a query selects leave days where an invoice covers that leave ie invWeekEnding 02 Oct and InvNumberWeeksCovered = 1 then any leave in the range 26 Sep to 02 Oct is ...

Outlook security

Hi to Everyone!! Is there any other way to get rid of this outlook security message? "A program is trying to automatically send e-mail on your behalf ... and so on" and it gives me an option to select Yes , No & Help. Im currently developing an outlook automation app using Ms Access. Everytime I issue Send command this message popups,...

MS Access How to convert this select query to Delete query?

I have the following select query SELECT t1.* FROM t1, t2 WHERE t1.field1=t2.field1 And t1.field2=t2.field2 And t1.field3=t2.field3 ; I want to convert this into a delete query. how should i write it? ...

Access. Alternative for left function

Hi, i am trying to write a query using left function in access to take only the first 3 characters of a field. Is there any alternative method for performing the same process without using left Usage of left function shows a compile. error all of a sudden without any reason. If i copy the table and query to a new database it works fi...

Microsoft Access Disable User Input for Automation

Is there a known way, direct or workaround, by which I can disable ms access 2003 asking for user input. I have a method in which I can call a VBA procedure and I run this with a scheduled task when everyone is out of the database at around 6:30 AM. Yet I found an error in one of my queries where a space wasn't present and access was ask...

seam 2.2 with microsoft access

is it possible to import a MS access database (.mdb) in a seam project using JBoss tools within Eclipse (Ganymede)? Starting a new seam project, I cannot see any field which uses ms access as database type. Any answer is appreciated. ...

How to transpose rows and columns in Access 2003?

How do I transpose rows and columns in Access 2003? I have a multiple tables that I need to do this on. (I've reworded my question because feedback tells me it was confusing how I originally stated it.) Each table has 30 fields and 20 records. Lets say my fields are Name, Weight, Zip Code, Quality4, Quality5, Quality6 through Qualit...

Access Database Default Date cannot contain 00 hour, 00 min or 00 sec

So, we have an old VB 6 App written many many years ago. It uses an Access Database to store data, and the VB6 App as the interface to this data Now, to change the VB6 app would be quite difficult, and I'm trying to avoid this. The problem is, when the VB6 inserts data into a table in the access database, the table has a column which use...

How to execute VBA function from MS Access Form?

Hi all. I have Access Form with some Text fields and one Button. Is there any posibility to execute VBA function with passed parameters from Access Form: on button Click? I know that I can exectute Macro but this doesnt resolve my problem. I need to execute VBA. Thanks in advance. ...

How do I debug event handlers in Microsoft Access 2000?

I have inherited some ancients Microsoft Access 2000 database applications and I need to reverse engineer them to support them and develop a replacement. The problem I have is that I can't seem to be able to get the debugger to kick in. Most of the code in the system is on events such as on FormLoad, ButtonClick etc so this is what I ne...

Help with Query design in MS-Access

CredTypeID is a number the CredType is the type of Credential I need the query to display the Credential in a drop down list so I can change the credential by selecting a new one. Currently I have to know the CredTypeID number to change the Credential. I just want to select it from a drop down list. Currently to change Betty Smith...

Access 2007 Setting Field to Selection in Dialog

I would like to set a field to a value selected from a grid in a dialog. I am using Access 2007. In WinForms I would: Create a child form create a grid for the data add a property for the selected item In the parent form add a button to open the form on successful dialog result get the selected item from the property update the ob...

MS Access 2003 - Information from a form output to a text file

So I have this form that has tons of text boxes, combo boxes, etc. There is VB in the form's module that check to see if there are duplicates, and then run a few update queries to save the information in to tables. All that works great. My question is what VB method can I use in this forms module to take information from all these objec...

Query in SQL that allows wildcard month/day but specific year

If i have a Date/Time field in Access and i need to find all the entries that are in a specific year... say 2009. If my fields are set up as MM/DD/YYYY, how would i do a query to essentially do //2009 update Thanks for the help everyone, but i guess the issue is that I'm kind of dynamically constructing my SQL statement in ASP. "SELEC...

ms Access form subform sort

I have a form where I specify information that is used by a subform in tabular view. The subform then displays entries for the item specified in the main form. Each entry has a date associated with it. I would like the entries to show up sorted by date such that the latest dates are at the bottom, and when you add an entry in the subf...

DateTime Format in MS Access

i developed a module and store data into an MS Access Database(mdb). The one Field uses DateTime Name(Date_of_Installation) for reference. The records stored fine. when I retrieve the Record using OleDBDataAdaptor to fill an DataSet for problem of datetime is changing format in Database to how can change the datetime format in DB. Exampl...