Is there a way to use a variable in the select_statement part of the DECLARE CURSOR?
For instance I would like to do the following
SELECT @SQL = 'SELECT [' + @FieldName + '] FROM [QueryName]'
DECLARE CURSOR_1 CURSOR FOR @SQL
However this does not seem to work. Is there any way to do this...
Thank you for the information, however if had a report that had 12 fields and then the guarantor name, it looks ugly to group the records and only have the guarantor name on each separate line. It would look much nicer if they were all in one text field separated by commas.
If I were to make a report that includes an intersectioin table in the query it would contain multiple records for a particular Field in the primary table. This would then make my reports show one line per record, when I'd rather have all the intersection field data in one field.
Example...
Somehow, I can no longer right click on objects in design view and get a menu in Access 2002. Does anyone know how to turn this back on? Thanks for any help
I have a page that has a 2 list boxes and a combo box. The first list box is populated from a database with all the names of our associates. The other list box is empty as is the combo box. Here are the identifiers for each item:
List box #1
Available Users
List box #2
Selected users
Combo...
Thanks for your help... I'm not sure if that will work for what I want. Ultimately I want to be able to display this on a report and include totals for loan amt and the such but to only display one line of data for each loan instead of multiple ones because there are multiple exception items...
What I would like to know is if there is any way to take a standard one to many relationship and then displaying only 1 for each related item. For instance, say i have a table:
Exceptions:
ExceptionID <-- Primary Key
LoanID <-- Foreign Key
ItemID <-- Foreign Key
Instead of in a...
I need to build a report from a query that has 3 tables joined, however I would like the 2nd level grouping to go accross the top instead of down. ex.
Table 1
-------
Contract #
AffiliateCode
CustFName
CustLName
Loan #
Table 2
-------
ExceptionID
ExceptionCode
ExceptionDesc
ExceptionType...
How would you get field names using VBA? I want to do this so that I can create a custom query builder that end users can use via a form. i have the table part of it.
Function ShowTables()
Dim mytables As TableDefs
Dim currenttable As TableDef
Dim currentfields As Fields...
Here's an easy test of the problem. If I were to write a simple piece of coding:
<html>
<head>
</head>
<body>
<form method="POST" name="test" action="../testpage.asp">
<table>
<tr>
<td>
<input type="Text" name="Test">
</td>
<td>
<input...
I have some code:
if not isempty(Request.form("Submit")) then
do code
end if
This works if the user clicks on the submit button but not if they hit the enter key.. Is there a way around this so that it will always run that code in the if statement if they click on the submit or hit...
Anyone have any idea at all what is up with that error message! I am almost to my breaking limit here! I get the above error whenever I try to Save for Web in Photoshop 7.01 and when I try to open a file in ImageReady 7.01. I can open a file in Photoshop and then "jump to" ImageReady...
I have a table callled
classdate which contains these fields
dateid
classid
instructor1
instructor2
instructor3
instructorcredit
There can be as many as 3 instructors for one class on any date.
One instructor could teach the same class just on different days.
I wanted to develop a query that...
I have a report that has a typical Report Header, Group Header, Detail, Group Footer, Report Footer. In the Group Footer I have a subreport. I was wondering if there was any to reduce or eliminate the Group footer height if the subreport contains no data for that particular record. Thanks.
You'll want to add the following code after the loop to set F# to null if you delete all values in that row
If c = 0 Then
Cells(r, "F").Value = Null
End If
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.