ms-access-2010

How to create a comment box with time and date stamp in Access

随声附和 提交于 2019-12-13 05:17:26
问题 There's a template in Access 2010 called Contacts. On the form there's a comment box, a text box below it and a button. When you enter text into the text box and click the button it adds the text to the comment box and time/date stamps it. If you do it again it preserves the old text in the comment box and adds the new text below it. I'm pretty new to access, but I would like to be able to add this feature to my database. So I've got a Memo field on the table and form and an input text box

how do I link a subform to a list in main form vba access

一曲冷凌霜 提交于 2019-12-13 05:16:05
问题 I have a subform that I want to link to a list on main form, and If I change the value in list, then the content of subform should be changed to, how can I do this job? 回答1: CLick on your subform frame and use the link properties: The Link Master Fields should be your listbox, and the Link Child Fields should be its corresponding foreign key field in the subform. 来源: https://stackoverflow.com/questions/18654603/how-do-i-link-a-subform-to-a-list-in-main-form-vba-access

Combine Access fields into one field given two queries

十年热恋 提交于 2019-12-13 05:06:31
问题 I have n MS Access fields that needs checking per row for one legal cell. A legal cell simply does not have the values "missing", "unknown"; or is not blank. All of these cells will be combined into a single field that only contains cell with legal values. Referring to the table below, Name_Final will contain these legal cells from Name_2010 , Name_2011 and Name_2012 . I already have two separate queries to help me do the job but I need to combine their results in order for me to get the Name

Access and Word 2010 merging one record depending on subform button clicked

和自甴很熟 提交于 2019-12-13 04:38:22
问题 I'm working on a small program in which one letter in Word needs to be create when one button in a Access subform is clicked. The form represents one client and in the subform there are the list of commands done by this client. Next each command line (containing date and description), there is one button that trigger the maccro and create the letter. Until now, I succeed to create the word letter when one button is clicked but each command in the subform create a page in the word document. Is

No Current Record Error in MS Access 2010 while using a self join

流过昼夜 提交于 2019-12-13 04:24:28
问题 I'm replacing a subquery with an self join to improve performance of my query. The old subquery was like this: (SELECT fage2.agecat FROM people AS fage2 WHERE fage2.aacode = people.aacode AND fage2.persno = 2) AS RAge2, The new self join is like this: (SELECT [People].[AgeCat] FROM [People] INNER JOIN [People] AS p2 ON [People].[aacode] = [P2].[aacode] WHERE [P2].[PERSNO] = 2 ) AS RAge2, but returns a No Current Record error message. The goal is to find the record that has the same aacode but

Query creates redundant entries

有些话、适合烂在心里 提交于 2019-12-13 04:05:05
问题 I've been using MS Access 2010 for a while now and I have big problem. I'll attach a dummy database here for reference. It's simple, three tables: 2 for data and 1 to act as a junction for a many-to-many relationship. I have one query that I would like to be able to enter values. Lets say I enter the following: +-------------+-------------+ | NameA | NameB | +-------------+-------------+ | Frank | Bob | | Frank | Harry | | Tom | Harry | +-------------+-------------+ The 2 data tables will end

Expected function / variable error message

不羁岁月 提交于 2019-12-13 04:02:08
问题 i am trying to write a simple append query using SQL for my access database. Upon trying to execute the code, the message i am getting is: Complilation error. Exepected function or variable The query is a query which joins 4 tables and pastes the fields into another table. When using a standard MS Access query it works fine. I then generated and copied the SQL code (below) but unfortunately cannot get the query to work. A final note about something strange. Unlike all the other SQL queries i

Subform filtering based off multiple parameters (Combobox AND Textbox)

可紊 提交于 2019-12-13 03:56:09
问题 I want to filter a subform based on two parameters on a form (combobox and textbox). I have a Form with combobox cboTimePeriod which show data from table TimePeriod (example TimePeriod=”10.01.2018-10.02.2018”; ID=12). Combobox data: Data Row source= SELECT [tblTimePeriod].[TimePeriod], [tblTimePeriod].[ID] FROM tblTimePeriod ORDER BY [TimePeriod]; Data Bound Column=2 (bound to ID) Format Column Count=1 (shows textual value of TimePeriod) Format List Width=2,54cm Also I have some cbobuttons

MS Access chart not recognizing decimal seperator

雨燕双飞 提交于 2019-12-13 03:55:05
问题 I have the following table and chart. The decimal . is not recognized, but why? What am I doing wrong? (Look at the Y scale in the chart) And this is a problem because some values has 3 digits ans some has 4. And it is generated with the round function Round(Number,3) ... Is this a rookie mistake? Best regards, Emil. 来源: https://stackoverflow.com/questions/27861530/ms-access-chart-not-recognizing-decimal-seperator

Set subform multi-select field using Dlookup

岁酱吖の 提交于 2019-12-13 03:24:31
问题 I have a table that has multiple booths assigned to a process and a Yes/NO field for the primary booth for that process. Process | Booth | Primary Buff1 | 8 | No Buff1 | 5 | Yes etc. I am trying to automate a form to select the primary booth on a multiselect field when the process gets selected using Dlookup. This is the code I am using: Me.Booth.Value = DLookup("Booth", "BoothSource", "BoothSource.Process = '" & Me.Process & "' AND BoothSource.Primary = True") The Booth field is a multi