ms-access

Connecting to an encrypted Access database after changing the Encryption Method

谁说我不能喝 提交于 2020-01-17 04:57:26
问题 Based on Accessing Password Protected MS Access file from excel, I should be able to go to Options > Client Settings and set the Encryption Method to "Use Legacy Encryption" and then be able to connect to my encrypted database through Excel Data Connections. However, when I do this, I still get prompted for the password repeatedly and eventually have to hit Cancel (and thus get no connection). I am using Excel 2010 and Access 2010. My database is encrypted and has linked tables (as well as

Can't do 2 joins on an MS Access query?

◇◆丶佛笑我妖孽 提交于 2020-01-17 04:19:08
问题 So I have checked all the names etc are correct, the query works with only one of the joins not both with a syntax error: SELECT *, Invoice_Accounts.Title AS t1, Invoice_Accounts.Forename AS f1, Invoice_Accounts.Surname AS s1 FROM Invoice_Accounts RIGHT JOIN Delivery_Points ON Invoice_Accounts.Account_No = Delivery_Points.Account_No RIGHT JOIN Companies ON Invoice_Accounts.account_id = Companies.Company_No This is the query I want to run but it comes up with the error: syntax error (missing

MS Access keep ID field in subform filled with ID from parent form

穿精又带淫゛_ 提交于 2020-01-17 04:12:33
问题 Everytime I jump to where I can enter e new record, the ID field from the parent is empty and so the connection is lost. I am looking for a workaround. My Setup I have a parent form that deals with two 1:n relationships (school-class --> pupils, school-class --> tests). For the first relationship I used the wizard. Everything works find. For the second I show the connected tests in an unbound list. Under the list is a button opening the form for entering a new record (test) for the class I

Obtaining the Maximum Field Size of an Access Column

ぃ、小莉子 提交于 2020-01-17 04:11:33
问题 Hi all you Stack Overflowers. I am having bit of a dilemma here. I need to obtain the Maximum of characters you may enter into a field but I have had no success and Google did not produce anyhing similar to what I need Here is my Code lvwDestination.Columns.Add("Fields in Database", 150, HorizontalAlignment.Left); lvwDestination.Columns.Add("DataType", 100, HorizontalAlignment.Left); lvwDestination.Columns.Add("Max", 100, HorizontalAlignment.Left); for (int i = 0; i < DataTable.Columns.Count;

Obtaining the Maximum Field Size of an Access Column

喜你入骨 提交于 2020-01-17 04:11:01
问题 Hi all you Stack Overflowers. I am having bit of a dilemma here. I need to obtain the Maximum of characters you may enter into a field but I have had no success and Google did not produce anyhing similar to what I need Here is my Code lvwDestination.Columns.Add("Fields in Database", 150, HorizontalAlignment.Left); lvwDestination.Columns.Add("DataType", 100, HorizontalAlignment.Left); lvwDestination.Columns.Add("Max", 100, HorizontalAlignment.Left); for (int i = 0; i < DataTable.Columns.Count;

can i combine these update queries into one query

人走茶凉 提交于 2020-01-17 03:24:24
问题 In an MS-Access database with Table called NewTable3 can i combine these 3 sql queries into one query UPDATE NewTable3 SET SAO = '0' WHERE SAO LIKE '-'; UPDATE NewTable3 SET SAO = '0' WHERE SAO LIKE 'NULL'; UPDATE NewTable3 SET SAO = '0' WHERE SAO LIKE 'NA'; 回答1: What about using OR ? UPDATE NewTable3 SET SAO = '0' WHERE (WAP LIKE '-') OR (WAP IS NULL) OR (WAP LIKE 'NA'); You can learn more about using AND and OR in SQL queries here. The original question included the condition WAP LIKE 'NULL

read text file line by line and insert/update values in table

拥有回忆 提交于 2020-01-17 02:31:26
问题 i am exploring the option of whether DoCmd.TransferText will do what i need, and it seems like it wont. i need to insert data if it does not exist and update it if it does exist i am planning to read a text file line by line like this: Dim intFile As Integer Dim strLine As String intFile = FreeFile() Open myFile For Input As #intFile Line Input #intFile, strLine Close #intFile i guess each individual line will be a record. it will probably be comma separated and some fields will have a " text

Access 2010 - Need to replace a null with a value

笑着哭i 提交于 2020-01-17 02:22:22
问题 I have a query that looks at two times and calculates the difference and puts the value (in seconds) in another field. I then sort that field. The problem is when one of the times is empty the row in the new field in not populated so when I do the sort the rows that nothing in them are pushed to the top. What I would like to do is replace the null with another value. Something like 9999999. That way when I perform the sort the rows that now have 999999 will be place at the bottom of the sort.

Count X Amount of Working Days from Date Entered

帅比萌擦擦* 提交于 2020-01-17 01:47:13
问题 I have a Microsoft Access database where the user is required to enter a Date Opened: value. Once entered, this triggers a calculation in another field, Deadline (25 WD): . This works via the following function in the latter field: =DateAdd("d",25,[Date opened]) What I want to do, however, is to count 25 working days from the date entered in Date Opened: . I have a table holidays which contains a list of UK holidays up until 2020. How can I merge to two, so-to-speak, in order to produce a

How to sum for a parent/child relationship in MS Access

家住魔仙堡 提交于 2020-01-16 20:06:28
问题 I have a number of Matters which are in a parent/child relationship. Each has a pointer to their parent matter, or null if they are the parent. Each matter can have a payment made, but all payments in a parent/child relationship are shared between both parent and child. A simplified version of my tables is: Matter | ID | Value | ParentID | -------------------------------------- | 1 | 200 | 0 | | 2 | 200 | 1 | | 3 | 300 | 0 | | 4 | 200 | 1 | | 5 | 800 | 0 | Payment | ID | Value | MatterID | --