ms-access-2007

How to save the images in an MS Access database?

点点圈 提交于 2019-12-25 02:16:07
问题 I am using MS Access as the database in my project. Can anyone help me to give idea that how can i save and retrieve images from this database? 回答1: it is generally NOT a good idea to save image in database, instead, people usually save the image on disk, and store its path in database. If you really want to do this, write the images' bytes into a Blob column. 回答2: You need to capture the Image from your front-end, Java Application. After this make connection with the Access Database and

How to add an editable column to non-editable query

扶醉桌前 提交于 2019-12-25 00:12:27
问题 I have a Query in Datasheet View in a Subform which holds information that the user needs to add to. Specifically, 2 columns need to be edited. The Query is non-editable because of a ton of GROUP BY clauses. Is there a way that I can add these 2 columns and make them editable per row without changing the query/rewriting it to make it editable? So far, I've tried adding an unbound column but that doesn't hold the data per row. Now, I've set a new table with the two columns I want to add as

Access 2007 Using the ID value from a list box in VBA/SQL statement

女生的网名这么多〃 提交于 2019-12-24 22:27:18
问题 Guys...if I want to run a button click event that takes a list box and uses the ID field that is in the listbox in a SQL statement in VB, then is it me.MyListbox.selected or me.MyListbox.value to get that value? for some reason I have tried both and neither seem to be working. .value returns an empty value, and .selected generates an error stating the argument is not valid. thanks justin 回答1: If the ID is the bound column and the listbox is not multiselect, you can use just the name of the

MS-Access pivot columns

落花浮王杯 提交于 2019-12-24 19:29:39
问题 I create an MS Access 2007 query where the same customer has multiple project and data appear like: 1 | Foo 1 | Bar 1 | Baz 2 | For 3 | Cad 3 | Cam and I want to transform it into something like 1 | Foo | Bar | Baz 2 | For | 3 | Cad | Cam | The goal is to create a spreadsheet view per customer (1,2,3) which can be read from word in order to create mailings per client 回答1: There is a very informative Database Journal article that does something similar to what you want; however, it states that

Dependent Combobox in a Datasheet in Access?

梦想与她 提交于 2019-12-24 19:14:44
问题 I've created a dependent combobox as mentioned as this article. http://office.microsoft.com/en-au/access-help/basing-one-combo-box-on-another-HA001173058.aspx However, the problem I'm having is that I'm trying to do this with a datasheet. When I specify the criteria as another field, it'll look at the first row's value instead of the current row's value. I'm willing to do this as a contiguous form as well, but don't know if that would help. 回答1: Unbound controls in a continuous form will only

exporting a query output to a text file

霸气de小男生 提交于 2019-12-24 15:33:26
问题 I have an access query which I am trying to export to a text file using the following code: DoCmd.TransferText acExportFixed, "Export Specification", _ "Test Query", "C:\Users\Documents\TestOutput.txt", True The issue I am having is: The output file "TestOutput.txt" has the data displayed with fixed width but the column headers are comma delimited. I want the column headers to be fixed width too. What would column headers not be displayed same as the rest of the data? 回答1: AFAICT, that is an

MS Access Passthrough Query Update

和自甴很熟 提交于 2019-12-24 15:27:33
问题 I am trying to make an Update to a Passthrough query using MS Access to an ODBC server that I have no control over. The reason I have to use a Passthrough is that the records I am accessing have more than 255 fields (I would use a linked table if I could). I've been using this resource to get the data using Passthrough (http://www.techonthenet.com/access/tutorials/passthrough/basics09.php) The query is simply: SELECT FullName, PointNumber FROM DNP3.CDNP3AnalogIn The ODBC Connect Str is: ODBC

SQL in Access and SQL in MS SQL Server

久未见 提交于 2019-12-24 15:07:06
问题 I have heard that SQL is mostly the same from program to program, but there are some differences. I am wondering if there are any differences in SQL between Access (2007 if it matters) and MS SQL Server? I wonder because I regularly use Access and want to learn SQL from a book, and I wonder if a book using MS SQL Server will serve my purposes? I am considering "Access 2007 Pure SQL" and "Beginning SQL Joes 2 Pros", the second of which uses MS SQL Server. Thanks for any help! 回答1: There's

MS Access: read-only linked tables from SQL Server?

自闭症网瘾萝莉.ら 提交于 2019-12-24 14:52:59
问题 Is there any way to link tables from SQL Server to Access as read-only? There's too much data to do an import. 回答1: While providing the credentials to choose the tables from your SQL database, you can configure this SQL user to have read only permissions. Add tables to Access database (trough Linked tables) Set SQL user (or Windows User, or Role) to "datareader" only. (in SQL Management Studio) 来源: https://stackoverflow.com/questions/33694068/ms-access-read-only-linked-tables-from-sql-server

Use Access or MySQL as a backend database

倖福魔咒の 提交于 2019-12-24 13:23:06
问题 I am writing a distributed DB Application with an Access Front end. Essentially an mde with some forms and reports. Should I use an access mdb to hold the backend tables or use MySQL or some other database? 回答1: Personally I would use SQL Server Express or MySQL. They scale better than an Access backend and when you are ready to move away from Access, you can do it without having to convert the backend as well as the front end. 回答2: SQL Server Express may be a good solution, but it has some