Andrey V Artemyev | Saint-Petersburg, Russia
Russian blog artemyev.biztoolbox.ru
JETSHOWPLAN in Access2013
Access 2016 Bug? Property BorderStyle - None (No Border) - shows Border
In Access 2016 on a form:
The Property BorderStyle: None shows a red border
In previous Versions of Microsoft Office Access "None = No Border" did not show a border (what is expected)
In Access 2016 it is showing a red border (which should not be).
Please report back.
Link local MS Access Database to Remote SQL Server OR MYSQL
Hi,
I have a little experience in databases, and I hope you can help me with my problem. My problem is as follow:
I have a local MS Access database and I'm using it in a C#.net application. I want to make an online SQL/MYSQL database so when there is an internet connection available I will use the SQL/MYSQL database and if not I have to use the local MS Access one. Also, I have to update the local records for the logged in user with the remote one and update the remotely database with all the new records for all users.
I hope I clearly explain my problem.
Please I need to know which is best to use SQL or MYSQL and what the way to do it?
Thank you
Increment a number using Select
How would I increment a number using this query:
SELECT [%$##@_Alias].student, Max([%$##@_Alias].TheJump) AS MaxJump
FROM (SELECT student,totalin1 AS TheJump
FROM Totalin
UNION
SELECT student,totalin2 AS TheJump
FROM Totalin
UNION
SELECT student,totalin3 AS TheJump
FROM Totalin
) AS [%$##@_Alias]
GROUP BY [%$##@_Alias].student
ORDER BY Max([%$##@_Alias].TheJump) DESC;
I want to add a filed call place starting with 1 then increment it by 1
I got the original query off here by can't find it now.
Gary
Easy way to promote dev to prod using SQL backend?
VBA Run-time Error
Run-time Error 3021: No Current Record
I get this error while I try to Import Excel file in one of the MS Access tables using VBA. Attaching screenshot, how to solve this please??
Just to be clear, I've made sure "tblBoQ" table and "C:\Import\BoQ" Excel files are at place. So there's no question about it.
Thanks.
"Loading your connected services" hangs [access-2013][Sharepoint-lists]
In access 2013 - Account menu, under "Connected Services". Shows "Loading your connected services", but never loads.
1) The message just stays there, just hanging and never loading.
2) Also Linked sharepoint list tables cause access to crash. Any attempt to load a database that had a linked table, i.e. linked sharepoint list table causes access to crash. Any attempt to setup a linked sharepoint list table crashes access.
It has been working fine for 2 months, but failed on Friday when I was using a slow network connection. The connection is back to normal but the Office 365 list connection details look to have corrupted, or something.
I am able to login to Office 365 via a browser and see the lists just fine, but access is unable to access them.
Any ideas how to fix? Am guessing re-install Access might work. Any ideas.
Related: Changing Office 365 password also causes access to crash if the database has linked sharepoint list tables - it crashes until "Connected Services" are updated with the new password. Not sure where to report this to.
Access 2016: is "What's new?" a rhetorical question?
Just installed the Office 2016 Preview. From the PoV of someone who uses Access as much or more than Excel, I suppose I am grateful that it's still there. But if anything is new for Desktop use, it's hard to spot.
I get that Corporate IT departments despise Access with a passion and that Job # 1 at Microsoft is to pander to Corporate IT departments. As it has always been, so shall it always be.
But at least some of us actually use it a lot and use it to solve real world problems that IT can't be bothered with. They'd rather we solved these problems with pen and paper and low paid clerks. (I'm serious. Those of you who work at these kinds of places know exactly what I'm talking about.) Sure, I understand Microsoft wants to invest in Access on top of SharePoint. But for users who aren't in a corporate environment, this is useless unless suddenly they make SharePoint like functionality available via Office.com. Even for many users in a corporate environment, the SharePoint w/ Access stuff is useless because Corporate IT will never enable it in the first place and will always be many levels back on both SharePoint and Access even if they thought about enabling it.
Even some incredibly low fruit for desktop Access, say improvements to the query editor to depict non-equi joins or a context sensitive improved SQL editor for SQL view, seems too much to ask.
Am I missing something? Is there something, anything, in Access 2016 for the rest of us?
Junction Tables
I've a design issue, yet again. I've two tables with many-to-many relationship, where number of activities could be done on an equipment, and similarly equipment might also be treated under certain activities. Junction table between those tables comes up
with different set of requirements for each type of activity, on each equipment.
In attachment 1, I've created my situation where I have Activity and Equipment table and the Junction table between them. Now there are several different kind of activities and each activity appears to have a different set of attributes for the Junction table.
This is what I've tried to described in attachment 2.
If I try to create a different Junction Table for each different activity/equipment combination, then there will be several Junction Tables connecting to the same Activity and Equipment table. Will it be a correct approach according to database design rules??
I am wondering what are the other possibilities to deal with such situation, if above approach is not correct?? I've tried several approaches but in every approach there is something which makes me turn it down.
Each activity is later saved in History Table on daily basis to get the progress graph, as hinted in attachment 1. This will later be verified weekly from history table and any excess or missed quantity will be adjusted accordingly. I'm mentioning this because
when it'll be verified, I'll then need to go back and make modifications in relevant tables via some automatic procedure according to adjusted amount. I'm mentioning this because maybe it'll have an impact in a way i am trying to design a database.
I'm really in need of bit of a quick help here with very limited time left in project completion. Any help will be appreciated.
Thank you,
K
Date Selection As Report Parameter Not Working as Intended
I think this is more an issue of just not thinking clearly and I hope that I can make sense without too much pain for you all but I have a headcount report that is driven by a parameter form. The form contains all sorts of parameters that drive the report results such as a geography combobox and compensation inputs that use a combination of a combobox containing >, <, >=, etc.... All of these work perfectly. However, I have added Hire Date and Term Date and utilize a combobox with those same operators (>, <, >+, etc.). The idea being that if they wish to view records of those with a term date > 1/1/2015 (as an example) they can. I cannot figure out the coding. The way I have it set up results in pulling data only if they have a term date. On the parameter form I have a default value of "<>" in the combobox and 1/1/1900 in the date text box. The VBA is as follows:
strCrit17 = "[Term_Date] "
If IsNull(Me!Combo132) Then
MsgBox "Please select =, >, <, >=, <= etc."
Me.Combo132.SetFocus
Exit Sub
Else
strCrit17 = strCrit17 & Me!Combo129
End If
If IsNull(Me!Text131) Then
MsgBox "Please put a value in the textbox"
Me!Text131.SetFocus
Exit Sub
Else
strCrit17 = strCrit17 & " " & Me!Text131
End If
How do I set this up so that it will ignore term date as criteria unless they specifically wish to view term date?!?The coding above is not the full coding but rather just the handling of the term_date. If you need to see the full coding let me know and
I will paste that as well.
Thank you,
Kurt
Run-time error '3061': Too few parameters. Expected 1.
Hello! I need some professional advice on my codes. I can't see where the problem is here
CurrentDb.Execute "DELETE FROM Subject " & _" WHERE SubjCode=" & Me.frmSubjSub.Form.Recordset.Fields("SubjCode")It says it has too few parameters, expected 1. where "Subject" is a Table and "SubjCode" is a field name.
Access - ODBC connection to "" failed. Can't open the table in Datasheet View;
I have 3 employees who are having issues when opening this database. I need to mention that they have this Access database stored in a shared folder. The only way I could get this to work is to link each table to its location with the Linked Table Manager and it "fixes" it for them. However, the other problem is that the other 2 employees get locked out of this view and it no longer works for them. The ODBC connections are both set correctly in system32 and sysWOW64.
Am I correct that this is happening because the Access database is stored in a shared location? I scoured the net looking for an answer but couldn't find one.
Thanks!
The command or action ''...'' isn't available now, Does this mean "no longer supported"?
There are several posts about this message. I have bumped into it with the two statements
DoCmd.RunCommand acCmdBookmarksClearAll
DoCmd.RunCommand acCmdBookmarksToggle
I suspect they are no longer supported. Any thoughts?
Turn warnings off
I have looked all over on how to turn off warnings when I run a query when I click on a button.
I found information on SetWarnigs off and Echo off. But I cannot find those when I click on events then Macro builder.
Where do I find these so I can set warnings to off then back on when query is done.
Gary
How do I avoid character conflicts using SQL to write to tables
1) Is there a better way to insert/update records than building SQL command strings that would avoid this?
2) What are all the different characters I should be aware of which will mess up a SQL insert/update command string if I have to build them like I am?
Thanks for your help
Append Data Macro in Web App
I have limited experience with Data Macro's but I need to Append a Child table when the Parent adds a new record.
Three tables: Classes, Sessions, Attendees
Scenario: "Class A" has a one "Session" with "25 Attendees"
If another (or more) Session is added to Class A I would like to be able to ADD the same 25 Attendees to the new Session without selecting each individually. Can this be done with a Data Macro?
Thank you in advance.
John Fletcher
Storing information selected in a combo box, in a list box on the same form
Hi all,
I have a combo box called Combo492 which is on a form. That Combo Box is related to a table in order for the user to select a part from the parts table list. When a part is selected, i want to visibly store it in a List Box in the same form where they have selected the part. I am struggling to get the List Box (List542) to reference Combo492. In the list box I would like to almost create a shopping list of parts, so every part they select from Combo492 is stored in List542. If possible I would like to add a button in order for them to store it in List542, as that will allow them to check the part that they have and then save it. If that makes it more difficult please just tell me how to store information from the Combo Box, in the List Box.
For clarification this is in a form called "FAILURE TRACKING" and I have many Combo Box's up and running, I would now like to add the List Box to show what parts they select from Combo492 on that form.
I am new to access so do not know if this is possible and if so, if it is easy. Thank you in advance for your help.
Access 2013: How to use a dynamic array within a Main Form and Subform
I have 2 tables Building & Leases in which they are in a one-to-many relationship. I have created a form that the user can see all the leases for each building. The main form shows the building details. The subform shows all the lease details for a specific building. The subform is in datasheet view. In the subform, there is a checkbox (yes/no) field which allows the user to select which lease records they want to export to an Excel worksheet. In the main form, there is a button the user selects to export all the records data they have selected (when done selecting all) to Excel. I keep track of which records the users selects in a dynamic array. The problem I am having is I do not know where to declare the dynamic array? I resize the array when the user either selects/unselects a lease record while the subform is open. I have read through different posts online and tried to use those ideas, but no luck. I have tried declaring a dynamic array in different places the main form class or subform class or a common module. The subform class uses the On Click event associated with the checkbox. This event is where I populate the array with IDs identifying which records the user has selected/unselected. The main form class uses the On Click event associated with the button. I need to access the array within both of these event code. If I define the array in the main form, I am not able to resize(using Redim Preserve) it in the subform On Click event code. If define the array in the subform class, the main form class can't access the array. I have tried to define it as public, static, etc.. Is there another way to accomplish this? Any help appreciated.
Print all orders from my recordset
Good morning,
I have a temporary recorset that store all orders that are not print, however, when I run the code below by clicking on a button near the table button, it prints all the invoices, but if I have 2 records into an order, it prints twice the invoice, if I have 3 records into an order it prints 3 times and so on...
Recordset SQL: (Please note that the field [Réf client] is in reality the table number
Here is the code:
Private Sub ImprimerTousTable1_Click() On Error GoTo Err_Handler Dim NoTable As Integer Dim intTableNo As Integer Dim dbs As DAO.Database Dim rst As DAO.Recordset Dim strSQL As String Dim i As Integer Set dbs = CurrentDb() strSQL = "SELECT * " & _"FROM [Données facture RequêteTEMP]" & _"WHERE((([Données facture RequêteTEMP].[Réf client]) = 1))" Set rst = CurrentDb.OpenRecordset(strSQL, dbOpenDynaset, dbSeeChanges) If ImprimerFacturesParTable = "Oui" And rst.RecordCount > 0 Then rst.MoveLast rst.MoveFirst Do Until rst.EOF DoCmd.OpenReport "FacturePaiementsParTable", acViewNormal, "", "[Réf commande]=" & rst![Réf commande] rst.MoveNext Loop Else MsgBox ("Il n'y a aucune commande ou aucun items à imprimer pour cette table!") End If Closerst: rst.Close dbs.Close Set rst = Nothing Set dbs = Nothing Exit_Handler: Exit Sub Err_Handler: If Err = 3021 Or Err = 3265 Then Resume Exit_Handler 'Else 'MsgBox "Error " & Err.Number & ": " & Err.Description, vbExclamation, "Erreur lorsque clique sur imprimer toutes les commandes Table1_Click()" 'Resume Exit_Handler End If End Sub
Here is an image of the button:
Claude Larocque
Read files in a folder in descending order with file name or date created....!
Assalam-o-Alaikum,
I want to read files from a folder in descending order... I mean read the latest file first then the older one then another older one and soo on... I am using Microsoft Scripting Runtime to read files for now. How can I read files in descending order.
A response will be appreciated.
Thanks
Wasif Shahid
Regards, Wasif Shahid ACCEDER software