ms-access

Why does VB.NET Jet 4.0 app crash if Office not installed?

喜欢而已 提交于 2019-12-24 08:24:57
问题 I'm working on a VB2008 project that references two Access databases using Provider=Microsoft.Jet.OLEDB.4.0; It would seem if the user does not have MSOffice on their machine, the program crashes with a "XXX stopped working" on startup on Vista and Win7. I thought that Windows had XP and above had Jet functionality built in? Does anyone know why this is happening? What are the correct project/publish/prerequisites required please? TIA 回答1: There is absolutely NO Jet support for x64

How to Pass Multivalued field in query to VBA function

牧云@^-^@ 提交于 2019-12-24 08:23:31
问题 In my project I have a table1 that has an ID and a text field. table2 has a multi-valued field multifield wherein I can select multiple values from table (via lookup). Now, I have query1 where I want to pull the value from multifield - not multifield.value and pass it to a VBA function, like this: IDsToNames: table2.multifield . Problem is that VBA gives me this error: The multi-valued field 'table2.multifield` is not valied in the expression IDsToNames(table2.multifield) Now, I've tried with

ms-access could not delete

落爺英雄遲暮 提交于 2019-12-24 08:23:05
问题 ms-access is connecting to a local mysql database the following code returns an error: Public Function run_sql(strSql As String) On Error GoTo lblError CurrentDb.Execute strSql, dbFailOnError lblExit: Exit Function lblError: MsgBox Err.Number & ": " & Err.Description Resume lblExit End Function strSql = "DELETE FROM tblUsersSubjects WHERE user_id=2007;" - i ran this statement it works perfectly, but access is giving me this error: 3086: Could not delete from specified tables what is the cause

ADODB recordset column headers

人盡茶涼 提交于 2019-12-24 08:18:35
问题 I'm copying ADODB.Recordset data to excel file, but it copies the recordset data to excel without column headers.I'm using MS Access 2013, CompyFromRecordset command. my question is, is there any way to copy the data headers of RecordSet? For i = 0 To iFieldCount - 1 objSheet.Range("A" & i + 1).CopyFromRecordset rst objBook.Save Next i 回答1: A "header" is not a record and the CopyFromRecordset command does not include the headers. You must put the header in your sheet yourself by iterating

Formatting tables imported via a report

狂风中的少年 提交于 2019-12-24 08:18:16
问题 I have a few reports that I get every day that have to be imported into a database, MS Access, in a particular way. The problem is, the way the reports are laid out makes it difficult to do so. Program: Name A Date | Description | Other | Stuff Date | Description | Other | Stuff Program: Name B Date | Description | Other | Stuff Date | Description | Other | Stuff Program: Name C Date | Description | Other | Stuff Date | Description | Other | Stuff Basically, what I would like it to do is look

Formatting tables imported via a report

删除回忆录丶 提交于 2019-12-24 08:17:55
问题 I have a few reports that I get every day that have to be imported into a database, MS Access, in a particular way. The problem is, the way the reports are laid out makes it difficult to do so. Program: Name A Date | Description | Other | Stuff Date | Description | Other | Stuff Program: Name B Date | Description | Other | Stuff Date | Description | Other | Stuff Program: Name C Date | Description | Other | Stuff Date | Description | Other | Stuff Basically, what I would like it to do is look

ADODB recordset column headers

烈酒焚心 提交于 2019-12-24 08:17:02
问题 I'm copying ADODB.Recordset data to excel file, but it copies the recordset data to excel without column headers.I'm using MS Access 2013, CompyFromRecordset command. my question is, is there any way to copy the data headers of RecordSet? For i = 0 To iFieldCount - 1 objSheet.Range("A" & i + 1).CopyFromRecordset rst objBook.Save Next i 回答1: A "header" is not a record and the CopyFromRecordset command does not include the headers. You must put the header in your sheet yourself by iterating

VBA to generate permanent Controlls in Microsoft Access

百般思念 提交于 2019-12-24 08:16:58
问题 Situation: I download Attachments from Outlook and import them into Access tables based on a few criteria. For example, I download following files: SenderA_A_Timestamp.csv, SenderA_B_Timestamp.csv, SenderB_C_Timestamp.csv, SenderC_A_Timestamp.csv and loads more. Now I have made a form where the user can, for example, select all type C CSV-Files since a date or just all types, since a certain date. Cluster, Hosts and Volume represent the File types. The datetime indicates when it was updated

Access: “crosstab” query effect for non-numeric data

有些话、适合烂在心里 提交于 2019-12-24 07:59:35
问题 I am using Access 2007 and need help creating a query. If this is crazy long, sorry! I figure the more details the better understanding. I am not a programmer--I hope someone will help. I need to know how to collapse/summarize/roll up non-numeric data into a single row that shares a characteristic/value. What I want is like a crosstab query because I want unique cell values from different rows pivoted/displayed in columns along one row for that shared/common value. However, my data isn't

ADO error message

≯℡__Kan透↙ 提交于 2019-12-24 07:56:35
问题 I am getting an error message while trying to update one excel table from another excel table in a different (and closed) workbook. The error only appear when the source workbook is not in a .xls format . You cannot edit this field because it resides in a linked Excel spreadsheet. The ability to edit data in a linked Excel spreadsheet has been disabled in this Access Release. This is supposed to be an expected behavior when using Access. Why am I seeing this error as I'm not working with