Access Error: Microsoft Access can’t open the Zoom box

========= QUESTION --------- When I right-click a field cell in a query and select Zoom I get the following error in a pop up dialog box with an OK button: Microsoft Access can't open the Zoom box. The Microsoft Access Utility add-in is missing or was modified. Rerun Microsoft Access or Microsoft Office Setup to [...]

By |2017-12-01T23:47:39+00:00July 15th, 2011|Access, Computers, Documentation, Microsoft|Comments Off on Access Error: Microsoft Access can’t open the Zoom box

Access Error: …is not a valid name

========= QUESTION ---------When running  a query in Microsoft Access, I receive the following error in a pop up dialog box with an OK button: 'QUERY NAME HERE' is not a valid name. Make sure that it does not include invalid characters or punctuation and that it is not too long.    ========= ANSWER --------- This [...]

By |2017-12-01T23:47:39+00:00July 15th, 2011|Access, Computers, Documentation, Microsoft|Comments Off on Access Error: …is not a valid name

VBA: Use VBA to create directories

========= QUESTION --------- Can I create directories from within my VBA code?   ========= ANSWER --------- see EXAMPLES   ========= EXAMPLES --------- MkDir "c:TOTNExamples" --------- If Len(Dir("c:TOTNExamples", vbDirectory)) = 0 Then MkDir "c:TOTNExamples"End If   ========= APPLIES TO / KEY WORDS --------- VBA Directory Directories md MakeDirectory Make Directory   ========= REF --------- http://www.techonthenet.com/access/functions/file/mkdir.php   [...]

By |2011-07-13T08:50:11+00:00July 13th, 2011|Access, Computers, Documentation, Microsoft, VBA|Comments Off on VBA: Use VBA to create directories

Access: Undefined function “Right” in expression

========= QUESTION --------- All of a sudden when I am running a query that includes the standard Microsoft Access function Right(), it is erroring out on me with the error: "Undefined function "Right" in expression"   ========= ANSWER --------- Apparently functions like this can go missing from time to time for varying reasons. To get [...]

By |2017-12-01T23:47:40+00:00July 5th, 2011|Access, Computers, Documentation, Microsoft|Comments Off on Access: Undefined function “Right” in expression

Copy directory structure without files

========= QUESTION --------- Can you copy over the directory structure from one folder to another without copying the files in those directories?   ========= ANSWER --------- Use XCOPY from the Command Prompt using the /t and /e switches to include empty directories and subdirectories. See EXAMPLES   ========= EXAMPLES ---------xcopy "Q:PRODDATAReports" "C:UsersmyUserDocumentsSubDirSystemsQReports" /t /e   [...]

By |2011-07-05T14:23:39+00:00July 5th, 2011|Computers, Documentation, Microsoft, MS-DOS / Batch, Windows|Comments Off on Copy directory structure without files

VBA: On Error Resume Next and disabling

========= QUESTION --------- How do I ignore an error for one section of code, but then disable ignoring errors for other sections of code?   ========= ANSWER --------- See EXAMPLES   ========= EXAMPLES --------- To ignore errors: On Error Resume Next To turn off ignoring errors: On Error GoTo 0   ========= APPLIES TO / [...]

By |2011-06-22T10:49:53+00:00June 22nd, 2011|Computers, Documentation, Microsoft, VBA|Comments Off on VBA: On Error Resume Next and disabling

Access 2010: ‘Enable Content’ button for Network Files

========= QUESTION --------- Every time I open an Access Database from the network using Access 2010, I can't work in it until I click the [Enable Content] button. Is there a setting somewhere I can change to avoid this?   ========= ANSWER --------- Access 2010Select File, Options Select Trust Center, Trust Center Settings… --Macro Settings: [...]

By |2017-12-01T23:47:41+00:00June 21st, 2011|Access, Computers, Documentation, Microsoft|Comments Off on Access 2010: ‘Enable Content’ button for Network Files

VBA: Change the Color of an Object

========= QUESTION --------- I need to change the color of an object from within my VBA code.   ========= ANSWER --------- See EXAMPLES   ========= EXAMPLES --------- Private Sub ReLinkTables_Click()  Me.ReLinkTables.BackColor = RGB(186, 20, 25) Me.ReLinkTables.ForeColor = Hex(FFF200) Me.CurrentStatusLabel.Caption = "Clicked: ReLink Tables" Me.CurrentStatusLabel.BackColor = Me.CurrentStatusLabel.ForeColor = vbWhite Me.CurrentStatus = _ "Opening Linked Table Manager" & [...]

By |2011-06-20T08:05:33+00:00June 20th, 2011|Computers, Documentation, Microsoft, VBA|Comments Off on VBA: Change the Color of an Object

VBA: Access: Calling Linked Table Manager

========= QUESTION --------- Can you call or open the Linked Table Manager in Microsoft Access from your VBA code?   ========= ANSWER --------- See EXAMPLES --------- Another interesting way of doing this would be to simply execute a query in your VBA code against each linked table in your database, thereby causing the logon prompt [...]

By |2017-12-01T23:47:41+00:00June 15th, 2011|Access, Computers, Documentation, Microsoft, VBA|Comments Off on VBA: Access: Calling Linked Table Manager

VBA: Can you open Windows Explorer from VBA?

========= QUESTION --------- Can I open Windows Explorer from my VBA code?   ========= ANSWER --------- See EXAMPLES   ========= EXAMPLES --------- Private Sub WindowsExplorer_Click() Dim rst As RecordsetDim retval As String Set rst = CurrentDb.OpenRecordset("Parms")retval = Shell("explorer.exe " & rst!Path, vbNormalFocus)Set rst = NothingEnd Sub   ========= APPLIES TO / KEY WORDS --------- Microsoft [...]

By |2011-06-15T13:27:19+00:00June 15th, 2011|Access, Computers, Documentation, Microsoft, VBA|Comments Off on VBA: Can you open Windows Explorer from VBA?
Go to Top