ms-access-2013

Access 2013 form field value gets cut off on changing the number before the point

寵の児 提交于 2019-12-12 02:48:38
问题 Recently I created a form which loads some records from an SQL (linked) database. I want to display some field values (which are decimal numbers - 30,2 in the sql server). The values are loaded in the form and displayed with a comma for the decimals and a point as a 1000 separator like this: 5.222,55 . (Language settings on the computer). Though the thing is, when I change the 5 before the point into any number then the value gets truncated and it sees the point as the decimal separator. So

Select second max Access table

不问归期 提交于 2019-12-12 02:28:43
问题 The following code is meant to return all project names for the second most recent date of all dates in the table. I however keep getting the error "Your query does not include the specified expression 'Project Name' as part of an aggregate function. What am I doing incorrectly? SELECT DISTINCT TOP 2 Max([Report Date]) AS MaxReportDate FROM RedProjectHistorical WHERE (((RedProjectHistorical.[Report Date]) Not In (Select Max([Report Date]) FROM RedProjectHistorical))); 回答1: Try with the

you have tried to assign the Null value to a variable that is not of data type variant - access

别来无恙 提交于 2019-12-12 02:28:26
问题 Please press here for see the error in the gif. This is a new question as I am continue from my last question which can see here: Object variable or with block variable not set - Access 2013 Alright... I'm trying to get the names working, and it works as you can see in the gif. However when I'm adding a new person, this error just popped up and say "you have tried to assign the Null value to a variable that is not of data type variant" And yes, it's in danish language in case you didn't know.

Reduce size of Access database

久未见 提交于 2019-12-12 01:13:34
问题 I have an Access database, and it is 14 Mb! I really want to reduce the size as I takes a minute to download from the server. I've embedded images as backgrounds on the forms. However, converting the JPG to PNG or GIF doesn't seem to reduce the file size at all. Compacting also doesn't do much. Please advise if anyone knows how to reduce the file size significantly Thanks!! 来源: https://stackoverflow.com/questions/41737484/reduce-size-of-access-database

Count row in ms access report that have same data in 2 column

时光毁灭记忆、已成空白 提交于 2019-12-11 17:45:48
问题 form before that user need to select and when search button is clicked, it will show a report based on user selection this is the report after the search button is click Hi expert. I have a problem in looking for rows in ms access report that have duplicate data across columns family and name. So if in the first row column family = a and name = b, and in another row family = a and name = b, then we have a duplicate row regardless of other columns. I want it to count from the report not from

Runtime Error 3011 in Access

自古美人都是妖i 提交于 2019-12-11 17:01:50
问题 I just try to import a .csv file with vba. I use the DoCmd.TransferText method with custom specs. I tried to import the file with the wizard, with the same specs and it works perfectly fine. But when I start the vba I get this error Message: Sorry, it is in german, but I think one can read the essentials Here is the part of my code, where I call up the method: Public Function ImportFileToTable(params As ImportFileToTableParams) As ImportFileToTableResult 'TODO: Import a CSV File into the

How to edit and copy non-VBA-macros?

别来无恙 提交于 2019-12-11 15:12:09
问题 Well, I know, there is a difference between VBA-macros and non-VBA-macros in Access. Creating and editing of VBA-macros is not very different from Word/Excel: you have a text field, where you can write your code: But what about editing of non-VBA-macros? For me, it looks like "programming using a mouse-clicking" (for me, as for the new guy in Access, it looks very weird): Questions: Is it a common and correct way to edit non-VBA-macros in Access "using a mouse"? Or, probably, there is another

Character Limit On ConcatRelated() Function

限于喜欢 提交于 2019-12-11 15:04:44
问题 I have been using Allen Browne's ConcatRelated() function but am realizing with larger data sets the data is incomplete. Does this function have a character limit, and if it does - is there a different function /UDF that can achieve the same result? This is the function: - and link back to original thread http://allenbrowne.com/func-concat.html Public Function ConcatRelated(strField As String, _ strTable As String, _ Optional strWhere As String, _ Optional strOrderBy As String, _ Optional

SQL Microsoft Access Show immediate next row

怎甘沉沦 提交于 2019-12-11 14:42:21
问题 I'm trying to show rowa and rowb (right below it) if rowa is true in the WHERE statement. I do have it ORDER BY Date, but that wouldn't affect anything. Are there any quick ways of showing the rowb if rowa is shown? My code is... SELECT Roster.`Complete Name`, RS1018to1024.`Day of Week`, RS1018to1024.`Date`, RS1018to1024.`Time Type`, RS1018to1024.`Attribute`, RS1018to1024.`Value`, RS1018to1024.`Hourly value (in decimals)` FROM Roster INNER JOIN RS1018to1024 ON Roster.GIN = RS1018to1024.GIN

Importing XML into Access with an XSL transform

我的未来我决定 提交于 2019-12-11 13:44:01
问题 I've seen a few other answers for similar answers, but I can't quite wrap my head around it. I have an attribute centric XML file that I need to import into Access, which will only accept element centric formatting. It seems like I need to do a transform with an XSL file, but I'm not clear how to do it. Since the data is proprietary, I've disguised it with a sci fi theme. What I need to do is turn the first code example into the same format as the second one: <PLANETARY Protocol="Solar 1">