ms-access

How do I display a messagebox with unicode characters in VBA?

二次信任 提交于 2019-12-30 18:45:08
问题 I have a string containing unicode characters in VBA. I want to display that string in a message box containing it. However, instead of the string, the message box only contains a questionmark. MCVE: Dim s As String s = ChrW(5123) MsgBox s 回答1: MsgBox is not compatible with non-ANSI unicode characters. We can display message boxes with the WinAPI MessageBoxW function, however, and that is . Let's declare that function, and then create a wrapper for it that's nearly identical to the VBA MsgBox

MS ACCESS 2003 triggers (Query Event), and Excel import

十年热恋 提交于 2019-12-30 14:16:09
问题 I am working on a project in a company, and because of such i am bound to use MS ACCESS 2003 operating on XP (although, i don't think the OS is relevant here). Because the company is using other application (and also external sources), the data that is used as input in the table is not always sanitized. However, i noticed we can always get the data in .XLS (excel) format. The Database was composed of more than 40 tables, with redundancies, no keys, and no indexes; in other word it was a mess.

Connect to remote MS Access database from Linux Server using PHP

倖福魔咒の 提交于 2019-12-30 13:00:13
问题 Does anyone know if it's possible to connect and query an MS Access database from a Linux Server using PHP? If it is possible I'm thinking install ODBC driver on the Linux server, but will it work to connect to Access is the question. I've read it's possible with MSSQL. My knowledge is very limited when it comes to any Windows related DBs so any advice much appreciated. 回答1: Yes, it's possible. I've done it using ODBTP, which took advantage of the ODBC driver on the (Windows) machine that

Creating one table from data of another table in Access

一笑奈何 提交于 2019-12-30 12:38:21
问题 This question is regarding MS Access. What I'm trying to do is that I have one table in Access, and would like to create another table (hopefully automatically through some VBA code) using data from the first table. Is there any suggestion on how to do this? I'm quite new in VBA and Access so any detailed help would be appreciated (or direction on where to go). Original Table (table 1 Data): Original Table (table 1 structure): Table 2 Data: Table 2 Structure: 回答1: No VBA is needed. A UNION

Excel.Application Object .Quit leaves EXCEL.EXE running

拜拜、爱过 提交于 2019-12-30 11:24:06
问题 I'm working within MS Access 2013 on Windows 10 and I'm simply trying to write a Sub that opens an Excel file on disk, changes the column formatting and some columns, saves and quits. The Sub runs and does as intended, but the problem is that even after the .Quit command, "EXCEL.EXE" keeps running and subsequent calls to that Sub will result in run-time errors. If I close Access after running the sub, "EXCEL.EXE" disappears on the Task Manager, but not if I do "Compact and Repair" the

Query design practices in SQL

会有一股神秘感。 提交于 2019-12-30 10:45:13
问题 I am building queries for a database in MS Access 2007 and I am wondering if my current design practices are up to par. Basically, the database was configured before I came, but I have been given the responsibility of building efficient queries to extract the data. My current queries are small and simple, each accomplishing 2-3 tasks (sometimes only 1) at a time. The reason I am taking this approach is because I am completely new to SQL, and I find it easier to work with many, simple queries

Reading Unicode data from an Access database using JDBC

你离开我真会死。 提交于 2019-12-30 10:40:07
问题 I have an MS-Access database, which I am connecting to in Java using the JDBC (I think the JDBC-ODBC bridge). My access database has some values which are in hebrew. When I try to read these values using String str = rs.getString(1) (rs is a RowSet), the string I get is just a string of question marks. I have other strings in hebrew, which I set in the Java code using string literals, and they work fine. So I'm pretty sure the problem is specifically with reading from the db. I'm very new to

copy formatted text into access using vba

爷,独闯天下 提交于 2019-12-30 08:33:31
问题 I need to save formatted text from Word in an Access Database. So far I've managed to figure out how to store formatted text in an Access Field (Create a Memo Field in a Table and set the Text Format as Rich Text). Searching SO I have not yet come across a solution as to how to transport said text from word into Access. I know that it is possible, because you can do it by simply copying and pasting the information if you are doing it manually. My question, how can I copy formatted text from

How do I reference the current form in an expression in Microsoft Access?

两盒软妹~` 提交于 2019-12-30 08:28:28
问题 I'm no Access expert, and I have an (I hope!) simple question... I have a form with a number of records. In some textboxes I just present values from the underlying table - so they are bound to the corresponding fields. But some textboxes should contain calculated values. Some calculations are complicated and involves many fields from the table. I write the calculation as a VBA function. I could enter something like this as "Control Source": =MyFunction([Field1], [Field2], [Field3] ...) But I

Create View in MS Access 2007

隐身守侯 提交于 2019-12-30 08:11:46
问题 I have database in MsAccess 2007 having 5 Tables inside them I want to create View in MS Accesss I dont need Syntax, but i need Step to create View (because i cant find CreateView in MS Acccess 回答1: You cannot create a view in MS Access 2007, it is not supported. However, you can create a query to return the data that you need. See MSDN for Create View Statement. The Microsoft Access database engine does not support the use of CREATE VIEW, or any of the DDL statements, with non-Microsoft