ms-access-2013

Combobox null in if statement

烂漫一生 提交于 2019-12-05 01:20:58
I am trying to code an if statement where if a certain combobox is null, then it runs a certain part of code if it has data in it then it runs another. I wrote up this: Private Sub ProjectAddSetDateAutoBtn_Click() If ProjectAddAllDueDateAutoCmBx = Null Then 'Code1 Msgbox("ComboBox Is Null") Else 'Code2 Msgbox("ComboBox Has Data") End If End Sub I leave the combobox with no data, and then it doesn't run the code in the first part of the if or the code in the 2nd part of it either! If I enter data into the box, it runs the 2nd part of the if statement perfectly. There are no errors, I am quite

Create a new lookup table where data already exists

♀尐吖头ヾ 提交于 2019-12-04 16:54:32
I am working on a database in MS Access 2013 which has a considerable amount of non-normalised data, and I want to move them out to alternate tables and use them as lookups in the main table. However, when I create a lookup column, MS Access deletes the data and there is far too much data to reset every record by hand. Is there a way in Access 2013 to create such a lookup without losing the data? Please don't comment about how using lookup tables in Access is bad. I have read posts like the one below and I disagree with most of the points there, and some of them are just simply wrong. http:/

Runtime error 429 in VBA, but class is registered

微笑、不失礼 提交于 2019-12-04 16:00:50
I'm trying to recreate a program that uses javascript to open a connection to a PLC and then display all sorts of information on a web page. I'd rather have it in a form in MS Access for various reasons, and have spent forever trying to find the right dll to use (Jet32X.dll, if anyone is curious). I finally tracked the CLSID called out in the javascript back to a registered class for the PLC, and I'm trying to create that object in VB code. It won't get any further than the Dim As New line, however, throwing runtime error 429: "Active X Component Cannot Create Object." Really wish I had some

LIKE query on an Access database via C# always returns COUNT(*) of 0

限于喜欢 提交于 2019-12-04 01:59:54
问题 Please look into following code: using (OleDbConnection openCon = new OleDbConnection(ConfigurationManager.AppSettings["AccessConnectioString"])) { openCon.Open(); string tc = string.Empty; string ttc = string.Empty; if (!string.IsNullOrEmpty(QSetId)) { tc = "select count(*) as [Count] from ABC where QSetId = @qSetId and TText like 'RT*'"; } else { tc = "select count(*) as [Count] from PQR where TText like 'RT*'"; } using (OleDbCommand qtc= new OleDbCommand(tc)) { qtc.Connection = openCon; if

Collection Object - ByRef - ByVal

浪子不回头ぞ 提交于 2019-12-03 17:28:28
I am using VBA in Access 2013. In a regular module there are 2 procedures, RunProc() and PopulateCollection() When RunProc is executed it calls PopulateCollection where the argument passed is an Collection instace named MyCol . PopulateCollection adds 3 items and then RunProc continues by iterating the Collection. My question / problem is this: I want the argument MyCol in RunProc to NOT be populated by PopulateCollection . What is the proper way to accomplish this? Why does PopulateCollection populate both the argument and parameter? ' --------Module1------------------ Option Compare Database

How to convert an ADP to ACCDB using Access 2013?

微笑、不失礼 提交于 2019-12-03 09:57:31
问题 Access 2013 does not support ADP. Some alternatives to ADPs are given: Convert the ADP to a linked Access Desktop Database. Import objects into an ACCDE file and then create linked tables to the existing data by using an earlier version of Access. My ADP contains only Forms, Reports, Macros and Modules. I want to use this ADP in Access 2013 (not on any earlier version of Access). I have not found any method to convert ADP to a linked Access Desktop Database or to Import objects into an ACCDE

How do I import an .accdb file into Python and use the data?

不想你离开。 提交于 2019-12-03 07:14:13
问题 I am trying to figure out a way to create a program that allows me to find the best combination of data based on several different factors. I have a Microsoft Access file with creature data in it. Attack, Defense, Health, Required Battle skill to use and several other bits of info. I am trying to import this .accdb (Access 2013) file and be able to access the stored data. I am going to try to make a program that scans all the data and runs all possible combinations (sets of 5 creatures) to

How to convert an ADP to ACCDB using Access 2013?

青春壹個敷衍的年華 提交于 2019-12-03 01:28:15
Access 2013 does not support ADP. Some alternatives to ADPs are given: Convert the ADP to a linked Access Desktop Database. Import objects into an ACCDE file and then create linked tables to the existing data by using an earlier version of Access. My ADP contains only Forms, Reports, Macros and Modules. I want to use this ADP in Access 2013 (not on any earlier version of Access). I have not found any method to convert ADP to a linked Access Desktop Database or to Import objects into an ACCDE file on Access 2013. How can I convert an ADP to a linked Access Desktop Database or to Import objects

How do I import an .accdb file into Python and use the data?

寵の児 提交于 2019-12-02 20:51:50
I am trying to figure out a way to create a program that allows me to find the best combination of data based on several different factors. I have a Microsoft Access file with creature data in it. Attack, Defense, Health, Required Battle skill to use and several other bits of info. I am trying to import this .accdb (Access 2013) file and be able to access the stored data. I am going to try to make a program that scans all the data and runs all possible combinations (sets of 5 creatures) to find the strongest combination of creatures for different required battle skills (ex: 100 battle skill

ms access; how to move it into inaccessible state / DSN-less table without password

断了今生、忘了曾经 提交于 2019-12-02 16:09:20
问题 I tried to import tables from an already opened MS Access accdb file into a new accdb file using the built in import menu, but I got an error message. The error message said that the "admin" user has set the file in an inaccesible state. (this is my translation from hungarian) So I was not able to import any table or query. I would like to know, how to move an accdb or accde file into this inaccesible state programmatically, using VBA code. Reason behind: I would like to distribute a front