ms-access

MySQL ODBC Link Fails due to “authentication protocol refused”

牧云@^-^@ 提交于 2020-01-12 04:48:07
问题 I've had a good search around but not yet found an answer that allows me to rectify this problem. I'm trying to connect from MS Access to a MySQL 5.2 database on a remote server. I've set up a user account which has select, insert, update, delete privileges on the table in question. However, when I try to connect with this account, I get: Connection Failed [HY000][MySQL][ODBC 5.2(w) Driver] Connection using old (pre-4.1.1) authentication protocol refused (client option 'secure_auth' enabled)

Issue with Dlookup statment [closed]

安稳与你 提交于 2020-01-11 14:45:05
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 days ago . Private Sub WeightFrom_BeforeUpdate(Cancel As Integer) DLookup("Regimen", "AdminTableRegimenPerWeight"," & [FrmAdminRegimen].Form![WeightFrom] &" Between [WeightTo] And [WeightFrom]") Then MsgBox "Weight already assigned!" Me.WeightTo = Null End If End Sub Error is showing with the above Dlook code. I have a

Do not include weekends in date time

纵然是瞬间 提交于 2020-01-11 14:32:14
问题 I just want to know on how to compute DateTime without including weekends (currently making a library system). The library is not open during weekends that is why i need to calculate the date that will not include weekends. Ex. 03/13/15 = friday and im borrowing it for 5 days. So, the return date should be in 03/20/15= friday( because i didnt include the weekends) Can you please tell me or give me some ideas? Thanks! EDIT: ( The program suddenly freezes when i type a number) int days = 0;

Auto Refresh Form in Access 2017

前提是你 提交于 2020-01-11 14:27:14
问题 Is there a way to auto refresh a form by time? I'm creating an status board to display the current RMA status on a big screen for manufacturing. Is there a way to refresh this data every 10 seconds or so? Thanks in advance for any assistance. Tony 回答1: Yes, there is. Just set the Timer interval property on the form, and use the Form_Timer event. Add the following code to auto-refresh on the timer. Private Sub Form_Timer() Me.Requery End Sub Note that the timer interval is in milliseconds, so

Auto Refresh Form in Access 2017

独自空忆成欢 提交于 2020-01-11 14:26:03
问题 Is there a way to auto refresh a form by time? I'm creating an status board to display the current RMA status on a big screen for manufacturing. Is there a way to refresh this data every 10 seconds or so? Thanks in advance for any assistance. Tony 回答1: Yes, there is. Just set the Timer interval property on the form, and use the Form_Timer event. Add the following code to auto-refresh on the timer. Private Sub Form_Timer() Me.Requery End Sub Note that the timer interval is in milliseconds, so

Access Database Security Question

旧城冷巷雨未停 提交于 2020-01-11 13:39:51
问题 I have a database in Access 2003 that I only want certain people to be able to access. In my database I have a table which lists the people that should be able to access the database. (Tbl_BIRT_Users). The table contains their name, ntlogin and email address. It also has an 'adminstrator' field. My question has two parts: 1 - On opening the database how can I get it to lookup the ntlogin (environ username) of the person and ensure that that person is authorised to use the database? 2 - I need

Query most recent TWO entries per widget

自古美人都是妖i 提交于 2020-01-11 13:22:32
问题 I have two tables. One (Widgets) has a list of widgets (ID, widget_name, color, etc...) and data about them. The other one (Tests) has a list of tests run on the widgets (ID, date, info1, info2, etc...). What I want to do is display the most recent TWO tests. I dont think i really need to use the table Widgets for this but i described it so you would know where im coming from. I have constructed a "Totals" query that uses the MAX() function and displays the single most recent Date for each ID

MS ACCESS with desktop application over LAN

心已入冬 提交于 2020-01-11 13:12:04
问题 What is the best way to host MS ACCESS with desktop application over LAN without using shared folder? 回答1: You can use some Terminal Server (TS). For example Microsoft's Terminal server. It is a feature of server versions of ms windows OS. There are other TS available: Citrix, Nomachine. When you use msaccess desktop application located at TS, your users connect to TS by some client ("Remote desktop connection" for microsoft TS) and works just like they are sitting at the server. 回答2: The

Access get value from previous record

浪尽此生 提交于 2020-01-11 13:07:48
问题 I have an Access query with the following GL_A.Account, GL_P.FiscalYear, GL_P.FiscalPeriod, GL_P.BeginningBalance, GL_P.DebitAmount, GL_P.CreditAmount, [BeginningBalance]+([DebitAmount]-[CreditAmount]) AS EndingBalance The problem is that BeginningBalance only has values for January (FiscalPeriod 1). I need to have a new field ActualBeginngBal which comes from the previous month EndingBalance (Except January) Note: there are many account #'s but each account only has 1 record per FiscalPeriod

Finding first occurence of multiples value in every group sort by date in SQL

我们两清 提交于 2020-01-11 13:05:50
问题 I have a table with every operations that appends before an event group by another value. There is only 3 operations: R, E, P + ----------+----------+-----------+------------------------+ | Rollcycle | Blocking | Operation | Order | + ----------+----------+-----------+------------------------+ | 1 | 3 | R | 4 | | 1 | 3 | P | 3 | | 1 | 3 | E | 2 | | 1 | 3 | R | 1 | | 1 | 2 | P | 3 | | 1 | 2 | E | 2 | | 1 | 2 | R | 1 | | 1 | 1 | R | 1 | | 2 | 1 | E | 2 | | 2 | 1 | R | 1 | + ----------+---------