ms-access

Duplicate Count(Distinct [f]) in MS Access

久未见 提交于 2020-01-16 02:12:34
问题 Is there a quick way to duplicate the effect of the Count(Distinct [f]) in MS Access? For example: Data Table for a single referral (there are a few thousand of these in the real data): | Referral ID | Assessment Date | Assessment Team | Service Provided | Service Team | 1 | 02/01/2008 | AAA | BBB | AAA | 1 | 02/01/2008 | AAA | CCC | AAA | 1 | 02/01/2008 | AAA | DDD | BBB | 1 | 03/01/2008 | BBB | EEE | CCC I want a query that gives: | Referral ID | Number of Assessments | Teams Assessing |

Java not connecting to MS Access database using Eclipse

核能气质少年 提交于 2020-01-16 01:05:55
问题 Can anyone help me? I've already tried to solve this for one hour and I'm still confused. Below is my code and i get this error when compiling. Output msg:: DriverLoaded Could Not Connect to Databasejava.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source) at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source) at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(Unknown Source) at sun

Java not connecting to MS Access database using Eclipse

北城余情 提交于 2020-01-16 01:05:04
问题 Can anyone help me? I've already tried to solve this for one hour and I'm still confused. Below is my code and i get this error when compiling. Output msg:: DriverLoaded Could Not Connect to Databasejava.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source) at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source) at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(Unknown Source) at sun

How do you create an MS Access table in C# programmatically?

南楼画角 提交于 2020-01-16 01:04:18
问题 command.CommandText = "CREATE TABLE MyTable (" + "[Count] INT NOT NULL AUTO_INCREMENT PRIMARY KEY ," + "[TimeAndDate] TIMESTAMP NOT NULL ," + "[SerialNumber] VARCHAR( 14 ) NOT NULL ," + "[Result] BOOL NOT NULL ," + "UNIQUE ([TimeAndDate]))"; command.ExecuteNonQuery(); Code above flags syntax error exception, can you help me correct the query string? Thank you. 回答1: I'd suggest pasting the resulting query text into an Access query; it will tell you where the error is. On my Access XP, pasting

SQL query select top 5 per group leading Access to freeze on simple code and small data

一曲冷凌霜 提交于 2020-01-16 00:53:06
问题 I was trying to reproduce the select top n from group SQL but access freezes ( takes minutes to complete ) even on small set of data. date ret1 anndate 26-Jul-13 0.999214 25-Jul-13 29-Jul-13 0.982684 25-Jul-13 30-Jul-13 0.947938 25-Jul-13 31-Jul-13 1.024081 25-Jul-13 01-Aug-13 1.017739 25-Jul-13 02-Aug-13 1.001621 25-Jul-13 10-Dec-13 0.965405 09-Dec-13 11-Dec-13 1.009705 09-Dec-13 12-Dec-13 1.025508 09-Dec-13 13-Dec-13 0.994232 09-Dec-13 16-Dec-13 1.009065 09-Dec-13 17-Dec-13 0.984549 09-Dec

“No Current Record” error on acCmdSaveRecord when BeforeUpdate is cancelled

橙三吉。 提交于 2020-01-16 00:43:30
问题 I'm using RunCommand acCmdSaveRecord to save a record, and I'm trying to use the form's BeforeUpdate event to validate certain fields that I don't want to be left blank before the record is saved. I'm a bit new to using BeforeUpdate so I'm not sure if I'm using it correctly; here's my BeforeUpdate code: Private Sub Form_BeforeUpdate(Cancel As Integer) If IsNull(Me.[First Name]) Or IsNull(Me.LastName) Or IsNull(Me.DateOfBirth) Or IsNull(Me.CourseStartDate) Then MsgBox "Before the enrolment can

Query is not returning results in MS Access with C#?

僤鯓⒐⒋嵵緔 提交于 2020-01-16 00:43:30
问题 So I have a relatively simple query, but it is not matching the full_name text field even though I can see the data is there and is an exact match? I made sure to checkk the fullName parameter being passed in is the correct value. I couldn't find any documentation verifying if I needed the single quotes or not, but without it an error was thrown. Anyone have any suggestions? Code in question with the SQL statement? public static ObservableCollection<ShiftView> GetShifts(DateTime? start,

MS Access permissions with Active Directory users

删除回忆录丶 提交于 2020-01-16 00:33:06
问题 Is it possible to set Access persmissions using Active Directory users? Edit : The overall objective is to allow some users to see certain tables and deny this permission for other users. I'm wondering if it can be done using active directory users. 回答1: Depends on what you mean by Access permissions. Access user level security do not interact with Active Directory in any way. ACC: Microsoft Access Security FAQ Available in Download Center It is suggested you reread this FAQ several times. I

Iterate through tabs in TabControl to hide tabs based on names

谁都会走 提交于 2020-01-15 20:21:51
问题 I am working on a Microsoft Access Database (Office 2010) and I have a tab control on the bottom of my form that displays equipment information based on the type of equipment you select. I am trying to make it dynamically display and hide tabs as determined by the name of the tabs. To accomplish this I have used the following naming convention for my tabs. Tab_Static_Description Tab_Static_Comments Tab_Static_Maintenance Tab_Config_Computer1 Tab_Config_Computer2 Tab_Config_Printer1 Tab_Config

Iterate through tabs in TabControl to hide tabs based on names

限于喜欢 提交于 2020-01-15 20:15:43
问题 I am working on a Microsoft Access Database (Office 2010) and I have a tab control on the bottom of my form that displays equipment information based on the type of equipment you select. I am trying to make it dynamically display and hide tabs as determined by the name of the tabs. To accomplish this I have used the following naming convention for my tabs. Tab_Static_Description Tab_Static_Comments Tab_Static_Maintenance Tab_Config_Computer1 Tab_Config_Computer2 Tab_Config_Printer1 Tab_Config