ms-access

MS access Encrypt Users Passwords Stored in User Table (SQL)

混江龙づ霸主 提交于 2020-07-19 11:14:32
问题 My database is Access front end which is linked to SQL tables, is there a way of Encrypting/Hashing the passwords that are stored in my user table? I have seen something about Hashbytes and Salt? but not sure how to implement it? thank you in advance for your help 回答1: There is no native way to encrypt/decrypt in Access, but it's not hard to create your own. You can use the old "Zebras" method, by assigning different letters to the alphabet (you could also use some numbers or other ASCII

MS Access VBA: turn query results into a single string

被刻印的时光 ゝ 提交于 2020-07-18 08:36:31
问题 I have a table in MS Access composed of items, and there's another table where salespeople tie into those items. So for example the item "pencil" could have 4 people that sold it associated. Once everything comes out of the query I have something like this: item seller pencil joe pencil bob pencil charles pen john eraser ruth paper charles I have a report form where I'd like to list each item's sellers on a single line. Kind of like: pencil: bob, joe, charles pen: john eraser: ruth paper:

How can one set parameter values of an INSERT SQL query through VBA in Microsoft Access?

三世轮回 提交于 2020-07-18 05:41:09
问题 I am new to Access and I am coming from C#, SQL Server & .Net. There is a project that has come my way and I have to complete some parts. The scenario may be described as: An Access form with a subform An Access query that is the data source of the aforementioned subform, with two parameters, displayed as: Parametername1 String(255),Parametername2 String(255) . VBA code module(s) My plan is to set the values of the above mentioned query parameters within a procedure in my VBA code module. I

How can one set parameter values of an INSERT SQL query through VBA in Microsoft Access?

给你一囗甜甜゛ 提交于 2020-07-18 05:41:06
问题 I am new to Access and I am coming from C#, SQL Server & .Net. There is a project that has come my way and I have to complete some parts. The scenario may be described as: An Access form with a subform An Access query that is the data source of the aforementioned subform, with two parameters, displayed as: Parametername1 String(255),Parametername2 String(255) . VBA code module(s) My plan is to set the values of the above mentioned query parameters within a procedure in my VBA code module. I

Unit testing in MS Access

末鹿安然 提交于 2020-07-16 16:41:56
问题 I have an Access database project that is getting a bit to large to try to keep track of in my head. I know it is a little late in the game, but better late than never right? I have Googled but found nothing to my satisfaction. Is there any such thing as a unit testing framework for MS VBA? 回答1: There is VBAUnit for free on SourceForge. Also, the commercial vbUnit 3 may support VBA as well as regular VB ... I'm not sure, though. 回答2: I do some fairly extensive development in Microsoft Access,

Unit testing in MS Access

最后都变了- 提交于 2020-07-16 16:41:11
问题 I have an Access database project that is getting a bit to large to try to keep track of in my head. I know it is a little late in the game, but better late than never right? I have Googled but found nothing to my satisfaction. Is there any such thing as a unit testing framework for MS VBA? 回答1: There is VBAUnit for free on SourceForge. Also, the commercial vbUnit 3 may support VBA as well as regular VB ... I'm not sure, though. 回答2: I do some fairly extensive development in Microsoft Access,

Unit testing in MS Access

与世无争的帅哥 提交于 2020-07-16 16:40:35
问题 I have an Access database project that is getting a bit to large to try to keep track of in my head. I know it is a little late in the game, but better late than never right? I have Googled but found nothing to my satisfaction. Is there any such thing as a unit testing framework for MS VBA? 回答1: There is VBAUnit for free on SourceForge. Also, the commercial vbUnit 3 may support VBA as well as regular VB ... I'm not sure, though. 回答2: I do some fairly extensive development in Microsoft Access,

Using WHERE NOT EXISTS in MS Access SQL Query

ぃ、小莉子 提交于 2020-07-16 05:47:29
问题 I have a query that matches a field from a query to another field from a table. Here is the query: SELECT DISTINCT CarriersToSend.Carrier, [Dual Year Carrier Report].TPA_CARRIER FROM [Dual Year Carrier Report] INNER JOIN CarriersToSend ON [Dual Year Carrier Report].TPA_CARRIER = CarriersToSend.Carrier; It returns the values that match in the Carrier field of the CarriersToSend query and the TPA_CARRIER field of [Dual Year Carrier Report]. I then need to return the values that are in the

How to retrieve data from access database(.accdb) into excel using vba

让人想犯罪 __ 提交于 2020-07-15 08:20:27
问题 I'm working on Excel VBA macros and I want to retrieve data from a MS Access database ( .accdb file). I've tried using below connection string and it throws runtime error '438' Dim cn As Object, rs As Object,DBFullName As String,Target As Range DBFullName = "D:\Tool_Database\Tool_Database.accdb" Set Target = Sheets("Sheet1").Range("A1") Set cn = CreateObject("ADODB.Connection") cn.Open "Provider=Microsoft.ACE.OLEDB.12.0; Data Source=" & DBFullName & ";" Set rs = CreateObject("ADODB.Recordset"

Insert Into Access - Cannot Update. Database or object is read-only

倾然丶 夕夏残阳落幕 提交于 2020-07-10 17:24:34
问题 I'm trying to upload a table of values from Excel 2013 into Access 2013 database via the VBA code below. However, I keep getting an error. The error occurs on the cn.execute SQL line. Run-time error '-2147217911 (80040e09)': Cannot update. Database or object is read-only. I have checked permissions on the file and Access database and and it is read and write access. I've even tried to create a new microsoft Access database in a different directory but get the same error. Another thing that