ms-access

C# Access Database In use or Permission Failure

為{幸葍}努か 提交于 2019-12-24 22:25:21
问题 I'm using Access 2007 and C# to learn Databases. So far it's been rough but I've been able to handle things relatively well. What I need to do though is to query a my database table Accounts for the Amount of money a user has based on their pin. I've placed a button on the Windows Form I am using that will query the database on click. When I run/click the button as per normal I recieve the following error. Essentially my question is this: How would I go about setting the permissions up so

Updating a field of an Access table with data from form

帅比萌擦擦* 提交于 2019-12-24 22:15:53
问题 I am working on Access 2007. I have a table with some fields in it. I had created a form from the table and one of the fields of the table is a concatenation of 2 fields from the same table. There are 2 fields OppNo and Material in the table. I had created a form with these (and others in the table) fields. There is another field OppMat which is blank in the table. However, I had got the data into OppMat field populated as a concatenation of OppNo and Material fields in the form. I am now

Storing and retrieving images from an Access Database in C#

只愿长相守 提交于 2019-12-24 22:14:59
问题 Im new at C# programming and am trying to create a software that will allow the user to save information and a picture into a Ms access database. I have followed a tutorial on youtube and managed to store the info I needed and the picture but I cant seem to retrieve the image and display it in a picture box. can anyone help me? My code is: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text;

How to Return a value of Zero for null Value in Count Query in MS-Access?

人走茶凉 提交于 2019-12-24 22:07:12
问题 I have two Opening Types that I am trying to retrieve counts for in my query in MS-Access. As seen in the photo below. When either both of those values are present in my results they will produce the quantity of how many position are in for each. When one of the opening types has not been selected at all on the respected table it does not show on the query count as seen below. My SQL is as follows SELECT tblOpening.fk_OpeningTypeId ,Count(tblOpening.Position) AS CountOfPosition FROM

Why are my records blank in my Access query?

人走茶凉 提交于 2019-12-24 22:01:01
问题 I'm trying to run this query: SELECT tbl_G_ov_wta.PK_G, qry_performPrepElo_wta.PK_G, qry_performPrepElo_wta.ID1_ocStake FROM tbl_G_ov_wta INNER JOIN qry_performPrepElo_wta ON tbl_G_ov_wta.PK_G = qry_performPrepElo_wta.PK_G For some reason it won't pull through the values of qry_performPrepElo_wta.ID1_ocStake . Worth mentioning that PK_G is a common primary key. In playing around with this I've found that adding in criteria as follows fixes the issue: SELECT tbl_G_ov_wta.PK_G, qry

Add Record to Database and Upload an Image at the same time (2nd Attempt with different code)

蹲街弑〆低调 提交于 2019-12-24 22:00:02
问题 Having problems! I have messed with this code over and over. This is just one of my attempts. Trying to add a record to a database and upload an image at the same time. The first one I sent would add the record but, would not upload the image. This one will upload the image but, will not add the record. My patience is running out. On this one I'm getting a error saying I can't use generic requests. <%@ Language=VBScript %> <% option explicit Response.Expires = -1 Server.ScriptTimeout = 600

Search filesystem for filepath using VBA

喜夏-厌秋 提交于 2019-12-24 21:52:11
问题 I am looking for a way to search a specific folder for a subfolder containing a certain string. Below I have listed a function I typed off the top of my head to see if it would work. Well, it does work but when I am talking about searching through 6,000 folders on a network drive it just isn't fast enough. I'm sure that there is a better way to do it but I can't seem to dig anything up on Google. Is there an object that allows me to leverage the windows built in file system searching and

Parameterise a RecordSource query to ensure the data remains updateable?

此生再无相见时 提交于 2019-12-24 21:28:50
问题 I have a subform within a main form, that is set to datasheet view and extracts data from a SQL Server database, based on the forms supplied parameters. This means that selecting a different team from the combobox or date from the datepicker, pulls the relevant information into the datasheet. The user needs to be able to manipulate a boolean field within the data, and so far the only way I have found that I can make this data load and keep it updateable is to write the query in the

Do I need both conditions in IIf function?

故事扮演 提交于 2019-12-24 21:08:00
问题 I know the syntax of the IIf function in SQL is IIf(Boolean_Expression, True_Value, False_Value) But I just found a SQL Code where is written IIf([DATE_USER_TO_SPECIALIST] Is Not Null, Year([DATE_USER_TO_SPECIALIST]) & "." & IIf(Month([DATE_USER_TO_SPECIALIST])<=9,"0","") & Month([DATE_USER_TO_SPECIALIST])) AS DATE_USER_TO_SPECIALIST_YYYYMM And it works. But how? I can't find the false value, or is the false value not required? 回答1: Jet-SQL has own build-in IIF function which allows you to

Can't connect through PHP to an Access Database

╄→гoц情女王★ 提交于 2019-12-24 19:45:02
问题 I have to establish a connection via PHP to a Access Database, but everytime I try I get this error: Fatal error: Uncaught exception 'com_exception' With message: ' Source: Microsoft OLE DB Service Components Description: Das Format der Initialisierungszeichenfolge entspricht nicht den OLE DB-Angaben.' in E:\path\to\phpfile.php:93 Stack trace: #0 E:\path\to\phpfile.php(93): com->Open('DRIVER={Microso...') #1 {main} thrown in The German text means something like "the format of the