ms-access-2016

Generate a UNIQUE string made out of numeric / ALPHABET

六月ゝ 毕业季﹏ 提交于 2020-08-12 00:58:58
问题 My Problem I don't know any VBA Need to generate a string of 12 chars (ALPHA + numbers , 0-9 , A-Z) IN VBA... Sample output : "ADF3V3224K1WQ" (12 characters long , Higher caps Alphabetical letters , and Numeric values aswell). Story I'm having a hard time figuring out how to create a string generator (didn't say it has to be random, but it 100% has to be unique, meaning it has to check for duplications or store existing values), I have no experience with VBA. I already found a similar post

Generate a UNIQUE string made out of numeric / ALPHABET

﹥>﹥吖頭↗ 提交于 2020-08-12 00:57:12
问题 My Problem I don't know any VBA Need to generate a string of 12 chars (ALPHA + numbers , 0-9 , A-Z) IN VBA... Sample output : "ADF3V3224K1WQ" (12 characters long , Higher caps Alphabetical letters , and Numeric values aswell). Story I'm having a hard time figuring out how to create a string generator (didn't say it has to be random, but it 100% has to be unique, meaning it has to check for duplications or store existing values), I have no experience with VBA. I already found a similar post

MS Access Query does not differentiate hiragana and katakana with standard equality operator

牧云@^-^@ 提交于 2020-01-21 09:44:17
问题 I recently ran into a problem with an MS Access query where I was searching a table containing Japanese text. Japanese has two alphabets, hiragana and katakana, with the same sound value, but different characters. For example, あ (hiragana) and ア (katakana) are both pronounced as 'a'. These two characters need to be treated as distinct for my SELECT query, but when I run the following query: SELECT [KeywordID] FROM [Keyword] WHERE [Keyword].[Keyword]="あ" It returns two values in my Keyword

Operation must use an updatable query

孤街浪徒 提交于 2020-01-16 04:17:52
问题 I am trying to update a column in one table to set its value to the count of records in another table. This produces the error: Operation must use an updateable query. Query: UPDATE Tracking SET BatchCount = (Select Count(*) from Batch) WHERE ReportingDate=Date(); It seems Access does not like the Select Count(*) from Batch sub-query. If I replace it with a literal value, it works fine. Any suggestions to resolve this issue is much appreciated. 回答1: Unfortunately this is an inherent

MS Access ToggleButton Picture change

五迷三道 提交于 2020-01-06 06:46:16
问题 I was wondering if it is possible to change the picture of a toggle button in Access VBA depending on the state of the toggle button (pressed and not pressed)? My previous attempt on doing it included a check if the button's value is "true", but it hasn't really produced a valid result. If Me.Toggle4.Value = True Then Me.Toggle4.Picture = "IMAGE" Else Me.Toggle4.Picture = "IMAGE" End If What the code above produces is the button always having the same image. 回答1: It appears that the code

How to run an append query in ms access vba as part of a transaction

三世轮回 提交于 2020-01-04 15:33:12
问题 I'm very new to programming and have been building my company's inventory database on MS Access 2016. I've been able to get by just fine with macros so far, but I'm trying to run a transaction made of append and delete queries and am struggling with the vba code. I figured out how to run a transaction where the queries fail on error. However, the append query I'm trying to include in the transaction is drawing values from a blank form, and as far as I can figure out, that means I need to