ms-access

How can I link an external Access table via .NET?

你。 提交于 2020-01-05 10:14:10
问题 I have two files located in the App_Data folder in my solution. Both files are .accdb files and one is a file of tables, the core. I have another file that contains the stored queries and some VBA elements that I won't be needing anymore, but I will need the stored queries. This solution is located on a network drive and the file that holds the queries and the file that holds the tables are linked. When I create an installation project and install the application, I only need the file that

Whenever i try to run this code it gives me an error. [Asp.net SQL]

你离开我真会死。 提交于 2020-01-05 09:37:29
问题 I'm trying to run this register form and whenever I try to run it I get an error saying that I have a mistake when using the INSERT INTO command. Here is the error log: http://i.imgur.com/dQYP0U7.png And here is the full code: protected void Page_Load(object sender, EventArgs e) { string username = Request.Form["username"]; string password = Request.Form["password"]; string email = Request.Form["email"]; OleDbConnection dbCon = new OleDbConnection(); OleDbCommand dbCmd = new OleDbCommand();

Run Time Error 5 when initializing a 2D array

我与影子孤独终老i 提交于 2020-01-05 09:27:13
问题 I have been initializing a 2D array using Arr=Array(Array(),Array()) . But I have found that a Run Time Error 5 - Invalid Procedure Call or Argument would be triggered. The code have been used for years and the problem arose yesterday so I think it may be the result of some of the updates for MS Office or Windows. Update: The Error exists for Windows 10, Windows 7 but NOT for Windows Vista. To reproduce the Error: Sub foo() Dim Arr As Variant Arr = Array(Array(), Array()) End Sub 回答1: This is

Run Time Error 5 when initializing a 2D array

空扰寡人 提交于 2020-01-05 09:27:08
问题 I have been initializing a 2D array using Arr=Array(Array(),Array()) . But I have found that a Run Time Error 5 - Invalid Procedure Call or Argument would be triggered. The code have been used for years and the problem arose yesterday so I think it may be the result of some of the updates for MS Office or Windows. Update: The Error exists for Windows 10, Windows 7 but NOT for Windows Vista. To reproduce the Error: Sub foo() Dim Arr As Variant Arr = Array(Array(), Array()) End Sub 回答1: This is

MS Access from Java - Undefined function in expression

Deadly 提交于 2020-01-05 09:19:07
问题 I have a vba function in Access mdb file. I am trying to run a query from jdbc. while the query runs fine in access, from jdbc I get an error saying: [Microsoft][ODBC Microsoft Access Driver] Undefined function 'fun' in expression Here is a snippet of my code: Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver"); String database = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=xyz.mdb;"; Connection conn = DriverManager.getConnection(database,"",""); Statement select = conn.createStatement(

Access Multi-field Search with Results as you type

风流意气都作罢 提交于 2020-01-05 09:02:22
问题 Good morning, all, My question today is regarding multi-field search. I have a split form (fields and individual record at the top, all data in datasheet view on the bottom). I have multiple fields I would like to search on, so that a user may find a particular person based on a number of criteria. Here is the VBA that a colleague helped me with that works PERFECTLY right now, and I'd like to add just a bit more functionality to it by allowing it to search on more than just the one field.

Access query where one field is LIKE another

浪子不回头ぞ 提交于 2020-01-05 08:47:17
问题 I'm trying to query on on field in one table where it is LIKE a field in another table but am having trouble getting valid results. I want to find the Pager_ID in tbl_Emergin_Current_Device_Listing_20121126 where it is like the Pager_ID in tbl_AMCOM_PROD . Some relevant information: Pager_ID in tbl_Emergin_Current_Device_Listing_20121126 is at most 10 characters and are always numeric characters (example of 10 character Pager_ID: 3145551212). However, Pager_ID in tbl_AMCOM_PROD can be alpha

Access:How can I generate a report of a recordset?

你。 提交于 2020-01-05 08:42:50
问题 How can I generate a report in access with the data from a recordset (instead of a query or table). I have updates to the recordset that also must be shown in the report. 回答1: From Access Web you can use the "name" property of a recordset. You resulting code would look something like this: In the report Private Sub Report_Open(Cancel As Integer) Me.RecordSource = gMyRecordSet.Name End Sub In the calling object (module, form, etc.) Public gMyRecordSet As Recordset '... Public Sub callMyReport(

Microsoft Access TransferText function: problem with codepage

不羁岁月 提交于 2020-01-05 08:34:37
问题 I inherited a huge, bulky MS Access database and am assigned to solve a problem in it. The problem is as follow... System A exports its data to a pipeline-delimited .txt file. The files has special characters working correctly, for example the value "Müller" shows when opening this file in notepad or Excel. Next, the Access DB imports the .txt file and stores the result in an internal employees table. The last name field is of data type "memo". The method to import data from the .txt file to

Access 2007 Recordset problem

戏子无情 提交于 2020-01-05 08:32:23
问题 I am trying to migrate Access 2003 (running fine) to Access 2007. The code written in VBA creates some issues. Like I have one main form and 2 subform. In main form recordsource set set by a Dynamic query but based on main form data when I am trying to set the Recordset of subform then access 2007 crash & close itself. Could you please help any one to find out why this occur in access 2007. Public Sub LoadRecord(strRecId As String) On Error Resume Next Dim ctl As Access.Control Dim strsql As