This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table style="width:90%" border="1" cellPadding="8" align="center"> | |
<tbody> | |
<tr> | |
<td> | |
<aside>TIP: what if you need to modify one of your queries, or, create a new query based on an existing query that is contained in the tblOfQueries Table? It's easy! Locate the query you need to work on or work with. Copy the query string that is in the qryString field. Now create a new query in Microsoft Access® in the normal way. Change to the SQL view of the query design space. Now replace whatever is there by pasting the string from the clipboard into the SQL area. Now change back to the design view. Unless you're using something fancy like a UNION query, your regular query design space should be painted in the usual fashion with tables and criteria and such. One of the reasons I love Microsoft Access® so much! Make your changes and apply them back to the tblOfQueries by reverting back to the SQL view and copying the query from there back into the appropriate record in the tblOfQue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function ExecuteSQL(strSQL As String) As Boolean | |
Dim adb As DAO.Database | |
On Error GoTo handle_Error | |
ExecuteSQL = False | |
Set adb = CurrentDb adb.Execute strSQL$, dbFailOnError | |
ExecuteSQL = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function ReturnStandardQuery(strQueryName As String) As String | |
Dim varMsg As Variant | |
On Error GoTo handle_Error | |
ReturnStandardQuery$ = CStr(DLookup("\[qryString]", "tblOfQueries", "\[qryName]='" & strQueryName$ & "'")) | |
If ReturnStandardQuery$ = "" Then GoTo handle_Error | |
exit_Gracefully: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table style="width:90%" border="1" cellPadding="8" align="center"> | |
<tbody> | |
<tr> | |
<td> | |
<aside>NOTE: You may have noticed that I include both a prefix and a suffix on my variable names, plus suffixes on functions that I write (where feasible). This is because I like my code to be readable and function in a strict sense. If I declare a variable with data type Long, but I put a $ suffix on it within the code (because I forgot, OK?), I'd like to be able to be warned of my mistake before I check with the debugger. The "lng" and "str" prefixes help prevent these sorts of blunders in my code. I feel that this forethought reduces the time required to get through functional testing. A lot of the simple bugs that one can create are eliminated by abiding by strict naming conventions.</aside> | |
</td> | |
</tr> | |
</tbody> | |
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub DoWork_LookupTables() | |
Dim rsCheck As DAO.Recordset | |
Dim varMsg As Variant | |
Dim lngResult As Long | |
Dim strSQL As String | |
On Error GoTo handle_Error | |
// Check Applicant Country | |
Set rsCheck = Nothing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private Sub cmdSave_Click() | |
... | |
// Update all lookup tables first... | |
Call DoWork_LookupTables | |
... | |
End Sub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table style="width:100%" border="0"> | |
<tbody> | |
<tr> | |
<td style="width:20%">Name</td> | |
<td>Count_ExistingApplicantCountryInCountries</td> | |
</tr> | |
<tr> | |
<td>String</td> | |
<td>SELECT Count(*) AS countCountries<br/>FROM tblCountries, tblTEMP_NewMemberEntry<br/>WHERE<br/>(((LCase(\[tblCountries.[CountryName]))=LCase(\[tblTEMP_NewMemberEntry]!\[applicantCountry])));</td> | |
</tr> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table style="width:100%" border="0"> | |
<thead> | |
<tr> | |
<th>Field Name</th> | |
<th>Data Type</th> | |
<th>Description</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In your gatsby-config.js | |
require('dotenv').config({ | |
path: `.env.${process.env.NODE_ENV}`, | |
}); | |
module.exports = { | |
plugins: [ | |
{ | |
resolve: 'gatsby-source-mongodb', | |
options: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import PropTypes from 'prop-types'; | |
import React from 'react'; | |
import MapGL, { Marker } from 'react-map-gl'; | |
import PinDropIcon from '@material-ui/icons/PinDrop'; | |
// Styles | |
import './map.css'; | |
const token = process.env.GATSBY_MAPBOX_API; |
NewerOlder