I am trying to extract the values from a query using VBA.
Specifically, I want to concatenate all the values of the "rosEmail"
field from query "qselRosterEmailList" into one string (strEmails). I
can get one record's result by using the DLookup fuction, of course,
but I want to get every record's value. To do this, I believe I need
to build a recordset, but I do not know how.
I've read about doing it using DAO in Access 97, but I am using Access
2002. Also, I do not want to register any extra libraries, since I'll
be sharing the Access database with others and do not want those users
to have to register libraries as well.
The final result should be something like:
strEmails = "pe*****@email.com, pe*****@email.com, pe*****@email.com, pe*****@email.com"
Thanks for your help,
David 19 59659
Unfortunately, this code does not work. I get an error saying
"User-defined type not defined" and it doesn't go farther than the
first line of code. Although I'm not sure, I think this is because
it's DAO and not ADO. You wrote "Oh, so convert it to ADO. Or use late
binding" - can you elaborate on how to do this? I don't know how to
return the Recordset in ADO.
Also, where do I define the query that feeds this data? (strQuery =
qselRosterEmailList or something like that)
Thanks
bdt513 wrote: I am trying to extract the values from a query using VBA. Specifically, I want to concatenate all the values of the "rosEmail" field from query "qselRosterEmailList" into one string (strEmails).
I can get one record's result by using the DLookup fuction, of course, but I want to get every record's value. To do this, I believe I need to build a recordset, but I do not know how.
I've read about doing it using DAO in Access 97, but I am using
Access 2002. Also, I do not want to register any extra libraries, since
I'll be sharing the Access database with others and do not want those
users to have to register libraries as well.
The final result should be something like: strEmails = "pe*****@email.com, pe*****@email.com, pe*****@email.com, pe*****@email.com"
Thanks for your help, David
Umm... where's the code?
You basically declare a string variable and then inside looping through
the records, you append each value to the string.
This is crap, but it works... assumes you get your info from a query...
Option Compare Database
Public Function AddressList(ByVal strQuery As String) As String
Dim db As DAO.Database
Dim qd As DAO.QueryDef
Dim rs As DAO.Recordset
Dim strList As String
Set db = DBEngine(0)(0)
Set qd = db.QueryDefs(strQuery)
Set rs = qd.OpenRecordset
Do Until rs.EOF
strList = strList & ", " & rs.Fields(2).Value
rs.MoveNext
Loop
AddressList = Right$(strList, Len(strList) - 2)
rs.Close
Set rs = Nothing
Set qd = Nothing
Set db = Nothing
End Function
query:
SELECT tblPeople.FirstName, tblPeople.LastName, Left$([Firstname],1) &
[LastName] & "@mail.net" AS Expr1
FROM tblPeople;
Oh, so convert it to ADO. Or use late binding.
Here is the Recordset code I have now, and this produces an error at
the rs.Open line. "rosEmail" is the field I want and
"qselRosterEmailList" is the query from which I want to read.
Private Sub cmdGenerateEmailList_Click()
Dim temp, list As String
Dim rs As ADODB.Recordset
Set rs = New ADODB.Recordset
rs.Open "qselRosterEmailList"
Do While Not rs.EOF
temp = rs!rosEmail
list = temp & ", "
rs.MoveNext
Loop
rs.Close
End Sub
I think rs.Open "qselRosterEmailList" needs a connection.
I often use the connection of the current project
rs.Open "qselRosterEmailList", CurrentProject.Connection
And you might want to add further arguments after the conenction about the
way the recordset must be opened.
Kees de Boer
bdt513 wrote: Here is the Recordset code I have now, and this produces an error at the rs.Open line. "rosEmail" is the field I want and "qselRosterEmailList" is the query from which I want to read.
Private Sub cmdGenerateEmailList_Click()
Dim temp, list As String Dim rs As ADODB.Recordset
Set rs = New ADODB.Recordset rs.Open "qselRosterEmailList"
Do While Not rs.EOF temp = rs!rosEmail list = temp & ", " rs.MoveNext Loop
rs.Close
End Sub
I've modified the code, but I'm now getting a different error. For
some reason it does not like using a query as the Recordset on the
rs.Open command. When I use a table, I'm fine, but I need to pull this
data from a query. What do I need to do in order to allow me to use a
query to feed this Recordset? (I receive the error message, "No value
given for one or more parameters")
Here's the code as it stands now...
Sub EmailList()
Dim rs As ADODB.Recordset
Dim strEmails As String
Set rs = New ADODB.Recordset
rs.Open "Select * FROM qselRosterEmailList;", CurrentProject.Connection
While Not rs.EOF
strEmails = strEmails & ", " & rs.Fields(0).Value
rs.MoveNext
Wend
rs.Close
Set rs = Nothing
End Sub
> rs.Open "Select * FROM qselRosterEmailList", CurrentProject.Connection
As counterintuitive as it sounds, you cannot actually use
CurrentProject.Connection in this manner; you must decalre and use a
Connection object (and no, I don't know why):
Dim cnxn As ADODB.Connection
Dim rs As ADODB.Recordset
Set cnxn = CurrentProject.Connection
Set rs = New ADODB.Recordset
rs.Open "Select * FROM qselRosterEmailList", cnxn
Your code should run as above, however, I advise you to get in the habit of
specifying the parameters after the Connection, otherwise, Access uses the
defaults for the first two parameters, then figures the final one out on its
own (which slows down your code).
Filling in the default values, you have opened up this type of Recordset
/cursor:
rs.Open "Select * FROM qselRosterEmailList", cnxn, adOpenForwardOnly,
adLockReadOnly
This is fine in your situation, but you will need other types of cursors
(Keyset, LockOptimistic)
Also, you should specify the final parameter, in order to speed up the code:
adCmdText for queries, adCmdTableDirect for tables, or adCmdStoredProc for
Stored Procedures
rs.Open "Select * FROM qselRosterEmailList", cnxn, adOpenForwardOnly,
adLockReadOnly, adCmdText
Darryl Kerkeslager
"bdt513" <BD****@gmail.com> wrote: I've modified the code, but I'm now getting a different error. For some reason it does not like using a query as the Recordset on the rs.Open command. When I use a table, I'm fine, but I need to pull this data from a query. What do I need to do in order to allow me to use a query to feed this Recordset? (I receive the error message, "No value given for one or more parameters")
Here's the code as it stands now...
Sub EmailList()
Dim rs As ADODB.Recordset Dim strEmails As String
Set rs = New ADODB.Recordset
rs.Open "Select * FROM qselRosterEmailList;", CurrentProject.Connection
While Not rs.EOF strEmails = strEmails & ", " & rs.Fields(0).Value rs.MoveNext Wend rs.Close Set rs = Nothing
End Sub
That was a very helpful post, and I appreciate the advice. Still,
however, the code does not work. I receive the same error on the
rs.Open line:
"No value given for one or more parameters"
When I run the same code but use a table instead of a query, the code
works. Short of using a make table, how can I use the query
(qselRosterEmailList) to populate the Recordset? [The query does work
okay on its own. It opens properly and returns the right information]
Here's the code that's in my module:
-----------------------------
Sub EmailList()
Dim cnxn As ADODB.Connection
Dim rs As ADODB.Recordset
Set cnxn = CurrentProject.Connection
Set rs = New ADODB.Recordset
rs.Open "Select * FROM qselRosterEmailList", cnxn, adOpenForwardOnly,
adLockOptimistic, adCmdText
[...other stuff...]
End Sub
-----------------------------
When I use the follow line, which looks to a table instead of a query,
I have no problem:
rs.Open "Select * FROM tblRoster", cnxn, adOpenForwardOnly,
adLockOptimistic, adCmdText
Thanks again for you help,
David
Unfortunately, this code does not work. I get an error saying
"User-defined type not defined" and it doesn't go farther than the
first line of code. Although I'm not sure, I think this is because
it's DAO and not ADO. You wrote "Oh, so convert it to ADO. Or use late
binding" - can you elaborate on how to do this? I don't know how to
return the Recordset in ADO.
Also, where do I define the query that feeds this data? (strQuery =
qselRosterEmailList or something like that)
Thanks
Here is the Recordset code I have now, and this produces an error at
the rs.Open line. "rosEmail" is the field I want and
"qselRosterEmailList" is the query from which I want to read.
Private Sub cmdGenerateEmailList_Click()
Dim temp, list As String
Dim rs As ADODB.Recordset
Set rs = New ADODB.Recordset
rs.Open "qselRosterEmailList"
Do While Not rs.EOF
temp = rs!rosEmail
list = temp & ", "
rs.MoveNext
Loop
rs.Close
End Sub
I think rs.Open "qselRosterEmailList" needs a connection.
I often use the connection of the current project
rs.Open "qselRosterEmailList", CurrentProject.Connection
And you might want to add further arguments after the conenction about the
way the recordset must be opened.
Kees de Boer
bdt513 wrote: Here is the Recordset code I have now, and this produces an error at the rs.Open line. "rosEmail" is the field I want and "qselRosterEmailList" is the query from which I want to read.
Private Sub cmdGenerateEmailList_Click()
Dim temp, list As String Dim rs As ADODB.Recordset
Set rs = New ADODB.Recordset rs.Open "qselRosterEmailList"
Do While Not rs.EOF temp = rs!rosEmail list = temp & ", " rs.MoveNext Loop
rs.Close
End Sub
I've modified the code, but I'm now getting a different error. For
some reason it does not like using a query as the Recordset on the
rs.Open command. When I use a table, I'm fine, but I need to pull this
data from a query. What do I need to do in order to allow me to use a
query to feed this Recordset? (I receive the error message, "No value
given for one or more parameters")
Here's the code as it stands now...
Sub EmailList()
Dim rs As ADODB.Recordset
Dim strEmails As String
Set rs = New ADODB.Recordset
rs.Open "Select * FROM qselRosterEmailList;", CurrentProject.Connection
While Not rs.EOF
strEmails = strEmails & ", " & rs.Fields(0).Value
rs.MoveNext
Wend
rs.Close
Set rs = Nothing
End Sub
> rs.Open "Select * FROM qselRosterEmailList", CurrentProject.Connection
As counterintuitive as it sounds, you cannot actually use
CurrentProject.Connection in this manner; you must decalre and use a
Connection object (and no, I don't know why):
Dim cnxn As ADODB.Connection
Dim rs As ADODB.Recordset
Set cnxn = CurrentProject.Connection
Set rs = New ADODB.Recordset
rs.Open "Select * FROM qselRosterEmailList", cnxn
Your code should run as above, however, I advise you to get in the habit of
specifying the parameters after the Connection, otherwise, Access uses the
defaults for the first two parameters, then figures the final one out on its
own (which slows down your code).
Filling in the default values, you have opened up this type of Recordset
/cursor:
rs.Open "Select * FROM qselRosterEmailList", cnxn, adOpenForwardOnly,
adLockReadOnly
This is fine in your situation, but you will need other types of cursors
(Keyset, LockOptimistic)
Also, you should specify the final parameter, in order to speed up the code:
adCmdText for queries, adCmdTableDirect for tables, or adCmdStoredProc for
Stored Procedures
rs.Open "Select * FROM qselRosterEmailList", cnxn, adOpenForwardOnly,
adLockReadOnly, adCmdText
Darryl Kerkeslager
"bdt513" <BD****@gmail.com> wrote: I've modified the code, but I'm now getting a different error. For some reason it does not like using a query as the Recordset on the rs.Open command. When I use a table, I'm fine, but I need to pull this data from a query. What do I need to do in order to allow me to use a query to feed this Recordset? (I receive the error message, "No value given for one or more parameters")
Here's the code as it stands now...
Sub EmailList()
Dim rs As ADODB.Recordset Dim strEmails As String
Set rs = New ADODB.Recordset
rs.Open "Select * FROM qselRosterEmailList;", CurrentProject.Connection
While Not rs.EOF strEmails = strEmails & ", " & rs.Fields(0).Value rs.MoveNext Wend rs.Close Set rs = Nothing
End Sub
That was a very helpful post, and I appreciate the advice. Still,
however, the code does not work. I receive the same error on the
rs.Open line:
"No value given for one or more parameters"
When I run the same code but use a table instead of a query, the code
works. Short of using a make table, how can I use the query
(qselRosterEmailList) to populate the Recordset? [The query does work
okay on its own. It opens properly and returns the right information]
Here's the code that's in my module:
-----------------------------
Sub EmailList()
Dim cnxn As ADODB.Connection
Dim rs As ADODB.Recordset
Set cnxn = CurrentProject.Connection
Set rs = New ADODB.Recordset
rs.Open "Select * FROM qselRosterEmailList", cnxn, adOpenForwardOnly,
adLockOptimistic, adCmdText
[...other stuff...]
End Sub
-----------------------------
When I use the follow line, which looks to a table instead of a query,
I have no problem:
rs.Open "Select * FROM tblRoster", cnxn, adOpenForwardOnly,
adLockOptimistic, adCmdText
Thanks again for you help,
David
> Dim cnxn As ADODB.Connection Dim rs As ADODB.Recordset Set cnxn = CurrentProject.Connection Set rs = New ADODB.Recordset
rs.Open "Select * FROM qselRosterEmailList", cnxn, adOpenForwardOnly, adLockOptimistic, adCmdText
The code above is correct. So, the problem is with the query. I would
start asking questions like:
Does the query need parameters that it is not finding? [What *is* the SQL?]
Am I sure that I spelled the query name right?
Is the query that doesn't work in the same mdb as the table that does?
Darryl Kerkeslager
"bdt513" <BD****@gmail.com> wrote: I receive the same error on the rs.Open line: "No value given for one or more parameters"
When I run the same code but use a table instead of a query, the code works. Short of using a make table, how can I use the query (qselRosterEmailList) to populate the Recordset? [The query does work okay on its own. It opens properly and returns the right information]
[snip] When I use the follow line, which looks to a table instead of a query, I have no problem: rs.Open "Select * FROM tblRoster", cnxn, adOpenForwardOnly, adLockOptimistic, adCmdText
The query is spelled correctly (I understand that it's worth
double-checking, however).
Does the query need parameters? I don't think so, since it works fine
when run within Access. All queries and tables are within the same
Access database.
The SQL statement looks at check boxes on a form and compares them with
values in a query. If any of the conditions are true, a value of
"show" is returned, and that record appears in the result.
The SQL is below:
SELECT qselRosterActive.rosEmail
FROM qselRosterActive
WHERE (((IIf((([CurrentRole]="Sabre" And
[forms]![frmRosterEmail]![chkSabre]=True) Or ([CurrentRole]="Epee" And
[forms]![frmRosterEmail]![chkEpee]=True) Or ([CurrentRole]="Foil" And
[forms]![frmRosterEmail]![chkFoil]=True) Or ([CurrentRole]="Staff" And
[forms]![frmRosterEmail]![chkStaff]=True)) And (([rosGender]="M" And
[forms]![frmRosterEmail]![chkMen]=True) Or ([rosGender]="W" And
[forms]![frmRosterEmail]![chkWomen]=True)),"show"))="show"))
ORDER BY qselRosterActive.rosEmail;
This SQL referenced a previous query (qselRosterActive), whose SQL is
as follows:
SELECT tblRoster.*, tblRosterRole.rolRole AS CurrentRole
FROM tblRoster INNER JOIN tblRosterRole ON tblRoster.rosID =
tblRosterRole.rolRosID
WHERE (((tblRoster.rosActiveStatus)=True) AND
((tblRosterRole.rolDateEnd) Like #12/31/9999#))
ORDER BY tblRoster.rosNameFull;
Again, thank you very much for your help. I've long struggled to learn
about using Recordsets and am excited about applying knowledge now.
-David
My first thought (and really my only useful one) is that the form
frmRosterEmail is not accessible dwhen the query is run. Were it me, I would
take these steps:
You've already run this simple query, which works (and presumable returns a
value)
rs.Open "Select * FROM tblRoster", cnxn, adOpenForwardOnly,
adLockOptimistic, adCmdText
So run the Open statement with qselRosterActive, your other query. You can
run it either as:
rs.Source = "SELECT tblRoster.*, tblRosterRole.rolRole AS CurrentRole
FROM tblRoster INNER JOIN tblRosterRole ON tblRoster.rosID =
tblRosterRole.rolRosID
WHERE (((tblRoster.rosActiveStatus)=True) AND
((tblRosterRole.rolDateEnd) Like #12/31/9999#))
ORDER BY tblRoster.rosNameFull"
rs.Open , cnxn, adOpenForwardOnly, adLockOptimistic, adCmdText
or
rs.Open "SELECT tblRoster.*, tblRosterRole.rolRole AS CurrentRole
FROM tblRoster INNER JOIN tblRosterRole ON tblRoster.rosID =
tblRosterRole.rolRosID
WHERE (((tblRoster.rosActiveStatus)=True) AND
((tblRosterRole.rolDateEnd) Like #12/31/9999#))
ORDER BY tblRoster.rosNameFull", cnxn, adOpenForwardOnly, adLockOptimistic,
adCmdText
or
rs.Open "SELECT * FROM qselRosterActive", cnxn, adOpenForwardOnly,
adLockOptimistic, adCmdText
or
rs.Source = "SELECT * FROM qselRosterActive"
rs.Open , cnxn, adOpenForwardOnly, adLockOptimistic, adCmdText
I usually separate out the Source parameter on queries for readability, but
the important point is, they all work.
I have to assume that the above will work, since I know of no reason that it
would not. If it does not ...?
If it does, then there is something with the first query. I would make a
duplicate, and working with the duplicate, simplify it until it works.
Darryl Kerkeslager
A Person Rapidly Running Out of Ideas
"bdt513" <BD****@gmail.com> wrote in message
news:11*********************@c13g2000cwb.googlegro ups.com... The query is spelled correctly (I understand that it's worth double-checking, however). Does the query need parameters? I don't think so, since it works fine when run within Access. All queries and tables are within the same Access database.
The SQL statement looks at check boxes on a form and compares them with values in a query. If any of the conditions are true, a value of "show" is returned, and that record appears in the result.
The SQL is below: SELECT qselRosterActive.rosEmail FROM qselRosterActive WHERE (((IIf((([CurrentRole]="Sabre" And [forms]![frmRosterEmail]![chkSabre]=True) Or ([CurrentRole]="Epee" And [forms]![frmRosterEmail]![chkEpee]=True) Or ([CurrentRole]="Foil" And [forms]![frmRosterEmail]![chkFoil]=True) Or ([CurrentRole]="Staff" And [forms]![frmRosterEmail]![chkStaff]=True)) And (([rosGender]="M" And [forms]![frmRosterEmail]![chkMen]=True) Or ([rosGender]="W" And [forms]![frmRosterEmail]![chkWomen]=True)),"show"))="show")) ORDER BY qselRosterActive.rosEmail;
This SQL referenced a previous query (qselRosterActive), whose SQL is as follows: SELECT tblRoster.*, tblRosterRole.rolRole AS CurrentRole FROM tblRoster INNER JOIN tblRosterRole ON tblRoster.rosID = tblRosterRole.rolRosID WHERE (((tblRoster.rosActiveStatus)=True) AND ((tblRosterRole.rolDateEnd) Like #12/31/9999#)) ORDER BY tblRoster.rosNameFull;
Again, thank you very much for your help. I've long struggled to learn about using Recordsets and am excited about applying knowledge now. -David
David,
The error message is correct, you are missing parameters and those
parameters are your form references. The query workes when you open it
in Access because access can see the form and fill in these parameters
while the Recordset Open cannot. You have two choices; either create the
Source to include the values as actual values or add in the parameters
properties to the Command object before you Open it. Examples (Air Code):
Option 1:
dim frm as Form
set frm = [forms]![frmRosterEmail]
stSQL = "SELECT qselRosterActive.rosEmail " & _
"FROM qselRosterActive " & _
"WHERE (((IIf((([CurrentRole]='Sabre' And " & _
frm![chkSabre] & "=True) Or ([CurrentRole]='Epee' And " & _
frm![chkEpee] & "=True) Or ([CurrentRole]='Foil' And " & _
frm![chkFoil] & "=True) Or ([CurrentRole]='Staff' And " & _
frm![chkStaff] & "=True)) And (([rosGender]='M' And " & _
frm![chkMen] & "=True) Or ([rosGender]='W' And " & _
frm![chkWomen] & "=True)),'show'))='show')) " & _
"ORDER BY qselRosterActive.rosEmail; "
rs.Source = stSQL
rs.Open 'use appropriate options for connection etc
Option 2:
Is a bit more complex in ADO (DAO is so much easier for this kind of
thing) so instead of adjusting your code I instead paste in the example
from the Help topic on 'Using the Command Object':
'BeginManualParamCmd
On Error GoTo ErrHandler:
Dim objConn As New ADODB.Connection
Dim objCmd As New ADODB.Command
Dim objParm1 As New ADODB.Parameter
Dim objRs As New ADODB.Recordset
' Set the CommandText as a parameterized SQL query.
objCmd.CommandText = "SELECT OrderID, OrderDate, " & _
"RequiredDate, ShippedDate " & _
"FROM Orders " & _
"WHERE CustomerID = ? " & _
"ORDER BY OrderID"
objCmd.CommandType = adCmdText
' Prepare command since we will be executing it more than once.
objCmd.Prepared = True
' Create new parameter for CustomerID. Initial value is ALFKI.
Set objParm1 = objCmd.CreateParameter("CustId", adChar, _
adParamInput, 5, "ALFKI")
objCmd.Parameters.Append objParm1
' Connect to the data source.
Set objConn = GetNewConnection
objCmd.ActiveConnection = objConn
' Execute once and display...
Set objRs = objCmd.Execute
Debug.Print objParm1.Value
Do While Not objRs.EOF
Debug.Print vbTab & objRs(0) & vbTab & objRs(1) & vbTab & _
objRs(2) & vbTab & objRs(3)
objRs.MoveNext
Loop
' ...then set new param value, re-execute command, and display.
objCmd("CustId") = "CACTU"
Set objRs = objCmd.Execute
Debug.Print objParm1.Value
Do While Not objRs.EOF
Debug.Print vbTab & objRs(0) & vbTab & objRs(1) & vbTab & _
objRs(2) & vbTab & objRs(3)
objRs.MoveNext
Loop
'clean up
objRs.Close
objConn.Close
Set objRs = Nothing
Set objConn = Nothing
Set objCmd = Nothing
Set objParm1 = Nothing
Exit Sub
ErrHandler:
'clean up
If objRs.State = adStateOpen Then
objRs.Close
End If
If objConn.State = adStateOpen Then
objConn.Close
End If
Set objRs = Nothing
Set objConn = Nothing
Set objCmd = Nothing
Set objParm1 = Nothing
If Err <> 0 Then
MsgBox Err.Source & "-->" & Err.Description, , "Error"
End If
'EndManualParamCmd
Hope this helps.
--
Bri
bdt513 wrote: The query is spelled correctly (I understand that it's worth double-checking, however). Does the query need parameters? I don't think so, since it works fine when run within Access. All queries and tables are within the same Access database.
The SQL statement looks at check boxes on a form and compares them with values in a query. If any of the conditions are true, a value of "show" is returned, and that record appears in the result.
The SQL is below: SELECT qselRosterActive.rosEmail FROM qselRosterActive WHERE (((IIf((([CurrentRole]="Sabre" And [forms]![frmRosterEmail]![chkSabre]=True) Or ([CurrentRole]="Epee" And [forms]![frmRosterEmail]![chkEpee]=True) Or ([CurrentRole]="Foil" And [forms]![frmRosterEmail]![chkFoil]=True) Or ([CurrentRole]="Staff" And [forms]![frmRosterEmail]![chkStaff]=True)) And (([rosGender]="M" And [forms]![frmRosterEmail]![chkMen]=True) Or ([rosGender]="W" And [forms]![frmRosterEmail]![chkWomen]=True)),"show"))="show")) ORDER BY qselRosterActive.rosEmail;
This SQL referenced a previous query (qselRosterActive), whose SQL is as follows: SELECT tblRoster.*, tblRosterRole.rolRole AS CurrentRole FROM tblRoster INNER JOIN tblRosterRole ON tblRoster.rosID = tblRosterRole.rolRosID WHERE (((tblRoster.rosActiveStatus)=True) AND ((tblRosterRole.rolDateEnd) Like #12/31/9999#)) ORDER BY tblRoster.rosNameFull;
Again, thank you very much for your help. I've long struggled to learn about using Recordsets and am excited about applying knowledge now. -David This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: bdt513 |
last post by:
I am trying to extract the values from a query using VBA.
Specifically, I want to concatenate all the values of the "rosEmail"
field from query "qselRosterEmailList" into one string (strEmails). I...
|
by: Kannan s |
last post by:
Dear Sir,
Sub: help requred to build an Update Query using if or iif
I am having two tables with the following fields
I wish to create a single update query in MS Access
Table1: code,...
|
by: sklett |
last post by:
I'm not real experienced with asp.net so this may be obvious.
I've got a situation where some of my client side javascript is causing my
posted form's controls to lose their values.
In other...
|
by: midlothian |
last post by:
Hello
Trying to update a memo field in an update query using the Replace
function, and am getting a type conversion error. Here is my parameter:
CStr(Replace(CStr(),"$",Chr$(13) & Chr$(10)))
...
|
by: markmcgookin |
last post by:
Hi Folks,
I am running a simple query using VB (This isnt a VB Question, dont worry!) on SQL Server Compact. I have the query below being created, and then added to if a flower location doesn't...
|
by: ADezii |
last post by:
There are basically 4 Methods that you can use to access the values of Fields in Recordsets. For the purposes of this demonstration, I'll be using a Table called tblEmployees, a Field named , and a...
|
by: vbarookie |
last post by:
I was able to consolidate about 100 csv files into one master table which I then imported into access (2003). The problem is that the csv files contained different layouts. Currently the data is...
|
by: afromanam |
last post by:
Hello,
Good morning,
I have a question, hope someone can help me.
I have a table with say, 5 columns, each named A,B,C,D,E
The table was imported from Excel, so picture please this:
|
by: tomric |
last post by:
I have a question on passing data to the criteria of a parameter of a parameter query using VBA. I have a query set up that has ten different fields in it. One is field named “status”, this field...
|
by: Ken Jones |
last post by:
Table URL_3 consist of the following 2 columns of information being Record No and URL
No URL
1 http:/publishing/45/100006_f.SAL_Local.html
2 ...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: Aliciasmith |
last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
|
by: tracyyun |
last post by:
Hello everyone,
I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
|
by: giovanniandrean |
last post by:
The energy model is structured as follows and uses excel sheets to give input data:
1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM)
Please note that the UK and Europe revert to winter time on...
|
by: NeoPa |
last post by:
Introduction
For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
|
by: isladogs |
last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, Mike...
|
by: GKJR |
last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...
|
by: SueHopson |
last post by:
Hi All,
I'm trying to create a single code (run off a button that calls the Private Sub) for our parts list report that will allow the user to filter by either/both PartVendor and PartType. On...
| |