ms-access

Can I use API or something else to get close to a TRUE RANDOM NUMBER in VBA?

一笑奈何 提交于 2021-02-08 07:23:52
问题 Is there an API, library, or some other chip-set based command I can access in VBA? I currently have a setup for getting random numbers; however, when I put the result sets to the test, the numbers do not even come close to generating a good statistical curve. I tested this by generating 600 simulated rolls of 2 six-sided dice totaling the 2 dice together each time. I was hoping for the number 7 to take a huge lead; however it came in second twice with nowhere near the appropriate statistical

Can I use API or something else to get close to a TRUE RANDOM NUMBER in VBA?

我只是一个虾纸丫 提交于 2021-02-08 07:22:09
问题 Is there an API, library, or some other chip-set based command I can access in VBA? I currently have a setup for getting random numbers; however, when I put the result sets to the test, the numbers do not even come close to generating a good statistical curve. I tested this by generating 600 simulated rolls of 2 six-sided dice totaling the 2 dice together each time. I was hoping for the number 7 to take a huge lead; however it came in second twice with nowhere near the appropriate statistical

How do I use an MS Access database with the Compact Framework?

柔情痞子 提交于 2021-02-08 07:13:20
问题 I am developing a Compact Framework application that needs to manipulate an existing MS Access database. Apparently the CF has no support for Access databases, or even ODBC. How can I do this, without changing the database? 回答1: The answer, in short, is that you don't. The CF has no ability to attach to an Access database, remote or local. Now if the database is on a PC, what I'd be inclided to do is create a simple WCF service that provides access (no pun intended) to the database by either

How do I use an MS Access database with the Compact Framework?

▼魔方 西西 提交于 2021-02-08 07:12:46
问题 I am developing a Compact Framework application that needs to manipulate an existing MS Access database. Apparently the CF has no support for Access databases, or even ODBC. How can I do this, without changing the database? 回答1: The answer, in short, is that you don't. The CF has no ability to attach to an Access database, remote or local. Now if the database is on a PC, what I'd be inclided to do is create a simple WCF service that provides access (no pun intended) to the database by either

How to add External .exe to my C# project?

倖福魔咒の 提交于 2021-02-08 06:27:35
问题 Can I add external .exe to my C# project so that i don't need any path to access it as outside app? I want to embed it as my project resource? Thanks in advance 回答1: You can add file by right-clicking on the project, or drag-n-drop works. You can add your exe in your solution and set its Build Action: Content and Copy to output Directory: Copy always . The installer should automatically include the file. Hope this helps 来源: https://stackoverflow.com/questions/51326810/how-to-add-external-exe

Refer to multiple selected Items in a listbox in ms-access

吃可爱长大的小学妹 提交于 2021-02-08 05:17:44
问题 How do I select multiple items in the list box, then refer to the Items I have selected? 回答1: You will need to use a variation of the following steps: create a list box on a form populate the list box using the row source. go to the other tab and change the multiselect property to extended I then used the following VBA Option Compare Database Private Item_IDs as string Private Sub List_item_id_Click() Dim i As Integer, count As Integer Dim Item_IDs As String count = 1 For i = 0 To Me.List

Insert DateTime into Access

我们两清 提交于 2021-02-08 04:41:12
问题 The problem: I'm trying to insert a date time into an access database using the Oledb interface in C#. Hacking solution: Generate my on insert string without using command.Properties I can insert text into the database with no problem, but when trying datetime, I end up with this error: System.Data.OleDb.OleDbException {"Data type mismatch in criteria expression."} There are several posts similar to this but alas with no working solution. Here is my code: void TransferData() { string instCmd

Syntax error in INSERT INTO statement generated by OleDbCommandBuilder

限于喜欢 提交于 2021-02-08 04:23:24
问题 Why does this keep telling me Syntax error in INSERT INTO statement I searched for more details but it keeps telling me this. This is the code : Imports System.Data Imports System.Data.OleDb Public Class f9 Dim ds As New DataSet Dim da As OleDb.OleDbDataAdapter Dim con As New OleDb.OleDbConnection Dim dbProvider As String Dim dbSource As String Dim sql As String Private Sub f9_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load dbProvider = "Provider=Microsoft

Syntax error in INSERT INTO statement generated by OleDbCommandBuilder

六月ゝ 毕业季﹏ 提交于 2021-02-08 04:22:18
问题 Why does this keep telling me Syntax error in INSERT INTO statement I searched for more details but it keeps telling me this. This is the code : Imports System.Data Imports System.Data.OleDb Public Class f9 Dim ds As New DataSet Dim da As OleDb.OleDbDataAdapter Dim con As New OleDb.OleDbConnection Dim dbProvider As String Dim dbSource As String Dim sql As String Private Sub f9_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load dbProvider = "Provider=Microsoft

why does access 2010 with postgresql odbc driver call IDENT_CURRENT?

99封情书 提交于 2021-02-08 03:28:47
问题 I am migrating an access 2003 application to access 2010. The application uses the postgres odbc driver to access its data. On access 2010 it tries to use the IDENT_CURRENT function on the postgresql server (as seen with wireshark) to identify the id of a recently inserted row ... Unfortunately IDENT_CURRENT is not a function supported by postgresql as far as I know ... I am using the latest postgresql ODBC driver (9.0) with a postgresql 8.3 database. 回答1: Using currval is the right way to go