ms-access

Work around Ms Access continuous form?

只愿长相守 提交于 2020-01-06 10:42:07
问题 The problem In the following form i want to accomplish two things When Post check box is ticked i.e. when post= true a query should run targeting the current record only and subtracting the amount with balance field in the customer table. UPDATE Customer INNER JOIN [Loan Payment] ON Customer.CUSID = [Loan Payment].CUSID SET Customer.CUSBalance = [Customer]![CUSBalance]-[Forms]![Loan Payment]![Amount] WHERE (((Customer.CUSID)=[Forms]![Loan Payment]![CUSID])); BUT INSTEAD THE WHEN THE QUERY IS

How to specify current user desktop for DoCmd.TransferText

烈酒焚心 提交于 2020-01-06 09:03:35
问题 This is what I have: Private Sub EthosRpt_Click() DoCmd.OpenQuery "EthosSessions" DoCmd.TransferText acExportDelim, , "EthosSessions", "C:\Users\JDoe\Desktop\EthosRpt.csv", True End Sub It works with my user account (where my user account = JDoe). How do I get it to work for ANY current user? 回答1: Try with: Private Sub EthosRpt_Click() Dim FileName As String DoCmd.OpenQuery "EthosSessions" FileName = Environ("UserProfile") & "\Desktop\EthosRpt.csv" DoCmd.TransferText acExportDelim, ,

How to specify current user desktop for DoCmd.TransferText

◇◆丶佛笑我妖孽 提交于 2020-01-06 09:03:13
问题 This is what I have: Private Sub EthosRpt_Click() DoCmd.OpenQuery "EthosSessions" DoCmd.TransferText acExportDelim, , "EthosSessions", "C:\Users\JDoe\Desktop\EthosRpt.csv", True End Sub It works with my user account (where my user account = JDoe). How do I get it to work for ANY current user? 回答1: Try with: Private Sub EthosRpt_Click() Dim FileName As String DoCmd.OpenQuery "EthosSessions" FileName = Environ("UserProfile") & "\Desktop\EthosRpt.csv" DoCmd.TransferText acExportDelim, ,

MS Access setting to ignore date conversion error

我是研究僧i 提交于 2020-01-06 08:55:27
问题 An Access DB imports a fixed width text file; one column is mostly dates. When the date is not available, the file's creator actually uses the string "Null" Access puts the row in the table with that field actually null. But, when the files started coming with different field widths, I copied the DB, tweaked the starting/width values in the input spec, and imported. NOW, all the rows with null get logging in (table)_import_errors as an error converting text to date. I have found no setting

What is the SQL used to create the Running Vusers graph in LoadRunner Analysis?

 ̄綄美尐妖づ 提交于 2020-01-06 08:42:25
问题 In HP LoadRunner Analysis, there is a running vusers graph that shows the current number of virtual users that are running throughout the test. An example graph is shown below. Does anyone know what is the SQL used to create the data for this graph? I know the data is stored in the LoadRunner analysis MDB database directly? ie An_Session1.mdb, though I am unable to determine the SQL Query. Thanks 回答1: I've refined the query a bit so I post a new answer instead of editing the previous one.

Deleting Multiple Rows from an Access Database

醉酒当歌 提交于 2020-01-06 08:38:04
问题 I want to delete multiple records from access database using array. The array is loaded dynamically from file names. Then i query the database, and see if the database column values are matching with the array values, if not then delete it, if matches then do not delete it. the problem is that: Following is the code that deletes all records irrespective of the where in Condition. arrays = Directory.GetFiles(sdira, "*", SearchOption.AllDirectories).Select(x => Path.GetFileName(x)).ToArray();

microsoft access database - cloud options

為{幸葍}努か 提交于 2020-01-06 08:26:05
问题 I have a microsoft access database that I use to track client specifications. I would like store the front-end and back-end database in the cloud and use it in real time. What recommendations and cheap options are available 回答1: One option is to host the frontend and backend on an AWS t2.small instance running Windows: AWS instance Then access this via Remote Desktop as any other machine. 来源: https://stackoverflow.com/questions/32643313/microsoft-access-database-cloud-options

Rotate selected images in a folder using VBA and ImageMagick

China☆狼群 提交于 2020-01-06 08:22:21
问题 I want to check a folder if a rotated version of my images exists, if it doesn't I want to use ImageMagick to automatically do it for me (or another program if it would be a better option). This is my code: Dim imageDomain As String Dim imagePath As String Dim rotatePath As String Dim rotateBool As Boolean Dim imageRotator As Integer Dim rs As DAO.Recordset Set rs = CurrentDb.OpenRecordset("SELECT Afbeelding FROM Products") imageDomain = CurrentProject.Path & "\folder\" If Not (rs.EOF And rs

Retrieve, Resize, and Save Images Back to Access Database Image Field

北城以北 提交于 2020-01-06 08:20:27
问题 I have a table that has a photo column in it, one of the users decided to start saving 20MB images into the field, which consequently caused the database to jump up in size by a factor of 6 in less than a year. So my ultimate goal is to iterate through the table, pull the image, resize and crop it, then save it back to the database. So my initial thought was this data is being saved as a blob byte array so i'm trying: public static Bitmap ByteToImage(byte[] blob) { using (var mStream = new

Reset counter ID to 1 for every new year in MS Access

﹥>﹥吖頭↗ 提交于 2020-01-06 08:03:47
问题 I have two tables , tblContacts and tblTrackJob . Every time a new record is about to be added in tblContacts , id like to assign its JobNo field to the value of whatever ID is in tblTrackJob has stored. Id like the value to reset to 1 every year. For example... first name, last name, JobNo, dateEntered bob smith 01 1/1/2013 john doe 02 1/2/2013 mary Thomas 03 1/3/2013 Joe Henry 01 1/1/2014 回答1: Since we're dealing with Access 2010 we can create a Before Change data macro for the [tblContacts