I have an Access form where a user enters a value into a text field. I can get this value through VBA no problem.
However, I want to run a check on this value.
How can I run a SELECT statement in VBA code. What I want to do is the following:
SELECT COUNT(Records) FROM Table WHERE Records =...
I've got some VBA code in an Access 2000 database that works fine. However, when I convert it to Access 97 one of the functions I've used (Split) fails.
The code is:
monthAndYear = "April 2003"
month = Split(monthAndYear, " ")
This gives month a value of...
Hi
Here's some Access VBA:
Dim found As Boolean
Dim frm As Form
found = False
For Each frm In Forms
If frm.Name = "SelectType" Then
found = True
End If
Next
strReportType = Forms!SelectType!ReportTypeCombo.Value
Now depending on what has been chosen...
Hi
Here's some Access VBA:
Dim found As Boolean
Dim frm As Form
found = False
For Each frm In Forms
If frm.Name = "SelectType" Then
found = True
End If
Next
strReportType = Forms!SelectType!ReportTypeCombo.Value
Now depending on what has been chosen...
Hi, First post here - please be gentle!
I've got some VBA code that outputs some results as follows into an Excel sheet:
Name Class Grade Grade total
John Biology 80
John Biology 76
John Maths 65
John...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.