ms-access-2016

How to edit and copy non-VBA-macros?

别来无恙 提交于 2019-12-11 15:12:09
问题 Well, I know, there is a difference between VBA-macros and non-VBA-macros in Access. Creating and editing of VBA-macros is not very different from Word/Excel: you have a text field, where you can write your code: But what about editing of non-VBA-macros? For me, it looks like "programming using a mouse-clicking" (for me, as for the new guy in Access, it looks very weird): Questions: Is it a common and correct way to edit non-VBA-macros in Access "using a mouse"? Or, probably, there is another

MS Access query on linked tables with multiple joins is very slow

泪湿孤枕 提交于 2019-12-11 10:58:08
问题 I've a MySQL database and a MS Access front end. MySQL database tables are linked via ODBC connection to MS Access. ANY query with multiple joined tables will run extremely slow in case of having anything in "WHERE" (or "HAVING") clause. For example: SELECT tblGuests.GuestName, Sum(tblPayments.Payment) AS SumOfPayment, tblRooms.RoomName FROM (tblGuests LEFT JOIN tblPayments ON tblGuests.GuestID = tblPayments.GuestNo) LEFT JOIN tblRooms ON tblGuests.RoomNo = tblRooms.RoomID WHERE tblGuests

How to design a query to give names of each related field linked to each set of data

扶醉桌前 提交于 2019-12-11 08:24:12
问题 I have a table that contains run numbers. This is then linked to a second table that contains the serial numbers of the panels that go through each run. I was wondering is it possible to design a query that will give for each run number the serial numbers. I would like it in a table like: Run Number1, First Serial Number for 1, Second Serial Number for 1, etc.. Run Number2, First Serial Number for 2, Second Serial Number for 2, etc.. I can get in in the form: Run Number1, First Serial Number

How to present a MS Access Form to the end user?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 05:19:39
问题 I created a form in MS Access. Unfortunately I cannot publish to access services or make a package solution I am looking for a user friendly way to present this form to the user. So far the user will open the ms access file , click on the form and fill it out. I would like to have a way to provide the form ONLY. I do not want the user to see all the tables and the structure . . Is there any way i can separate the form from the tables, queries etc. list ? I split the database, and gave a fe

How to set a validation rule on a field in Access using SQL Query?

青春壹個敷衍的年華 提交于 2019-12-10 06:28:34
问题 I am using MS Access 2016 (Office 365) and I am currently facing an issue. Below is an example demonstrating this issue. Here I created a Table named as NodeFamilyLink , which consists of two fields: NodeID and FamilyID as shown below. Now the NodeID's are obtained from another table NodeData, which consists of 3 fields: NodeID, NodeName and ParentID. In this table, all the nodes are defined initially as shown in the below image. Now, what I want is while entering a number inside the NodeID

Uploading file from Access to SQL Server with DAO code - Object Required error

谁都会走 提交于 2019-12-08 07:46:43
问题 I have an Access 2016 database being used as the frontend for a SQL Server 2008 Express instance. The WATER_FILES table exists in the SQL Server database and includes a column Binary_File of type varbinary(MAX) . I'm attempting to write a VBA sub routine that will upload a file into that column. The following code causes an error Object Required at runtime. This code is based on this incomplete page: https://msdn.microsoft.com/en-us/vba/access-vba/articles/work-with-attachments-in-dao# What

"Error: System.Data.OleDb.OleDbException (0x80004005): The following query has been corrupted: '' [duplicate]

那年仲夏 提交于 2019-12-08 02:05:47
问题 This question already has answers here : Getting Error 3340 Query ' ' is corrupt while executing queries DoCmd.RunSQL (9 answers) Closed 24 days ago . This morning the program stopped running with this error message. Only works on my machine, everyone else. This program has been running for two years and no such bug has occurred so far. What could be the reason? Nothing has changed since last night. I also reinstalled the ACCESS 2016 64x runtime, but unfortunately it did not improve. This is

\"Error: System.Data.OleDb.OleDbException (0x80004005): The following query has been corrupted: '' [duplicate]

流过昼夜 提交于 2019-12-06 06:37:28
This question already has answers here : Getting Error 3340 Query ' ' is corrupt while executing queries DoCmd.RunSQL (10 answers) Closed 17 days ago . This morning the program stopped running with this error message. Only works on my machine, everyone else. This program has been running for two years and no such bug has occurred so far. What could be the reason? Nothing has changed since last night. I also reinstalled the ACCESS 2016 64x runtime, but unfortunately it did not improve. This is a part of the update method: string _AccessOperation_command = "UPDATE [" + targettables.Trim() + "]

How to set a validation rule on a field in Access using SQL Query?

六眼飞鱼酱① 提交于 2019-12-06 03:48:28
I am using MS Access 2016 (Office 365) and I am currently facing an issue. Below is an example demonstrating this issue. Here I created a Table named as NodeFamilyLink , which consists of two fields: NodeID and FamilyID as shown below. Now the NodeID's are obtained from another table NodeData, which consists of 3 fields: NodeID, NodeName and ParentID. In this table, all the nodes are defined initially as shown in the below image. Now, what I want is while entering a number inside the NodeID column of the NodeFamilyLink table, if I enter a NodeID value which is not included in the ParentID

MS Access 2016 Treeview error: “No object in this control element. Runtime error 438”

前提是你 提交于 2019-12-05 18:05:17
I have a problem to open the treeview in MS Access. I think it's since the last windows update. I'm getting an error message when I start the program: "There is no object in this control element. Runtime error 438: Object does not support this property or method." The debugger marks one line yellow in the vba code: CreateTree TreeView0.Nodes . I didn't change anything since the last time. There it has still worked. I did the following steps, but they all didn't help: reinstalled MS Access repaired MS Access exchanged the C:\Windows\SysWOW64\MSCOMCTL.ocx, unregistered and registered it updated