Export in cvs format
Hi
I already do export some reports en queries in to an
..xls/rtf/tst/pdf-format. But my webmaster want it exported in cvs format. Is
this possible?
--
Luc Ringoir
Belgium
|
6/6/2010 7:09:21 AM
|
4
|
=?Utf-8?B?THVjaWFubw==?= <Luci...@discussions.microsoft.com>
|
|
|
Does SQL Run Behind Queries?
Access 2007
When I run a query does Access, "go away" and run the SQL for what I see in
the GUI?
If the answer is, "yes" is there anything that I can switch on to see the
SQL that it is running?
What I would like to do, if it is possible, is to see the query in the GUI
and, at the same time, see the SQL that is being used to select the data from
the database; that way I can understand things (exactly what is happening)
more clearly and more quickly.
TIA for any replies.
|
6/5/2010 10:39:06 AM
|
3
|
=?Utf-8?B?dHJpcF90b190b2t5bw==?= <i...@pierrefondes.com>
|
Date
I have a table with a start date column. I have created a query where I
include the start date from my table, I have created an expression to add 24
months to the start date but what I would like to also have is either the
specific date or the closest month of May.
for example Start date is July 1, 2008 if I add 24 months it will show July
1, 2010
What I would like to see is May 2010 as this the month that we identify
individuals that need to start a secondary process.
Very new to access and not that great with formulas
--
Thank You
Sassy
|
6/4/2010 5:52:23 PM
|
1
|
=?Utf-8?B?U2Fzc3k=?= <sassysolomon.com>
|
where can I find a 2010 attendance tracker
How can I get a 2010 attendance tracker?
|
6/4/2010 1:35:58 PM
|
0
|
=?Utf-8?B?YW5kcmVh?= <and...@discussions.microsoft.com>
|
dates from Access > Outlook Calendar
I would like to be able to add events to a shared Outlook 2007 Calendar
directly from our Access 2007 database. It seems fairly easy to do it from
Outlook to Access (though I haven't tried it!) but I can't find anything
straightforward for doing it the other way.
We would like to fill in the event details in an Access form and then, if
possible, have the basic date and times saved/ transferred/ whatever! to the
Outlook calendar - simply to save the extra step of doing it manually.
I have used Access for a few months but have not done any real coding -
(someone in the Outlook
|
6/4/2010 8:02:28 AM
|
0
|
=?Utf-8?B?S2F0aHJ5bg==?= <Kath...@discussions.microsoft.com>
|
2 value formula help needed
Hi All
Sorry new to this, and am fairly ok on excel but having problems figuring
this one out
I have some values that i want to total and show and additional currency +
total.
So as an example
Cell A1 A2 A3 A4 (this is
how I want it to look)
500.00 600.00 AUD 750.00 1100.00+AUD 750.00
can i do this and how ?
thank you
|
6/4/2010 4:30:36 AM
|
1
|
"karenp" <u60...@uwe>
|
Test Possible Before Saving?
ACCESS 2007
If I have made some changes (for example modifying a field to make sure that
values are required and / or creating a lookup for a field to name just 2
possibilities) is there a way to ensure that the above changes are tested
before I save the changes I've made?
TIA for any replies.
|
6/3/2010 2:21:53 PM
|
2
|
=?Utf-8?B?dHJpcF90b190b2t5bw==?= <i...@pierrefondes.com>
|
macro help
I have a "customers input form" for entering name, address, ref no.,
etc.
I have an "order form" with a text box into which can be manually
entered a customer reference number when needed. Next to the box is a
button that when activated opens the "customers input form" displaying
the customer details.
The macro for the button is:
OpenForm
form name, customers input
where condition, ="[CRN]=" & [CRN]
This works fine, except when the button is activated and there is
nothing in the text box, there is then a syntax error and the macro has
to be stopped manually.
Question is
|
6/3/2010 11:36:09 AM
|
3
|
mick <no.s...@junk.mail>
|
Selecting the last 10 records from a specific date
I have a date field and name field, I want to return the last 10 Name records
entered from a specific date..... ie: Count back 10 records in the date field
from Todays date and display the names from that date, to today.... seems
really simple but I can't get it right...
|
6/3/2010 4:30:33 AM
|
2
|
=?Utf-8?B?c2VtbWlzb24=?= <semmi...@discussions.microsoft.com>
|
Query help
I have a form with (2) textboxes StartDate & EndDate also a command button.
When the command button is pressed a query captures the (2) dates and then
displays the correct results. I would like to see the results in a listbox
instead of a query window. The code behind the button is wizard created:
DoCmd.OpenQuery "Qcalendar", acViewNormal
Thanks
|
6/2/2010 3:48:01 AM
|
3
|
=?Utf-8?B?UmljaGFyZA==?= <Rich...@discussions.microsoft.com>
|
Store info for reports from switchboard
Hello, im running MS 2007 and I need help with my form 'frmSwitchboard'. On
my form I have buttons that open reports and some buttons require a
selection from a combo box
thats associated with that button. Now on the frmSwitchboard(s) button I am
using;
Me.Visible = False 'Hides the switchboard
So I can use the information when the report opens and when I close the
report I use;
Forms![frmSwitchboard].Visible = True
Which makes the frmSwitchboard visible again. My problem is if I open a
report and choose to just
close the DB all together I get the error;
Run-time er
|
6/1/2010 9:50:01 PM
|
2
|
=?Utf-8?B?U29nZ3lDYXNoZXc=?= <SoggyCas...@discussions.microsoft.com>
|
Let's pick a replacement for this (Access) newsgroup
Folks have recommended various sites to replace this (Access) newsgroup for
when poor-listener Microsoft drops it.
Why don't we pick a replacement to give it the "critical mass" to fully
replace this one? If interested, please respond to this with your
recommendation.
Also, if you feel like it, in case this goes dead, send me an email with
your email address at North9000 at gmail dot com and I'll try to
collect / send out the news/results. (via blind cc)
I did / will be duplicating this in database design, general and new user
Access groups.
|
6/1/2010 2:56:11 PM
|
20
|
=?Utf-8?B?RnJlZA==?= <F...@discussions.microsoft.com>
|
Ribbon
I have succeeded in using Albert D Kallal ' s brilliant code to control a
Ribbon on a form.
The only problem I cannot solve is how to make some buttons invisible when
the form loads.
If I put the meRib("btSearch").visible = False in Form_Active or Form_Current.
I get the runtime error '2475' you entered an expression that requires a form
to be the active window.
Any suggestions would be great.
--
Message posted via http://www.accessmonster.com
|
5/31/2010 8:20:37 PM
|
1
|
"TonyAntique via AccessMonster.com" <u59...@uwe>
|
.iqy in Access
Is it possible in MSAccess to convert or reproduce in VBA a .iqy ?
I need to bring the data that the .iqy extract directly in an Access table
without using Excel at all.
M.A.
|
5/31/2010 3:55:13 PM
|
0
|
"Fuz" <u60...@uwe>
|
Thank You
I have been using this newsgroup for many years, and on each ocation I have
always been received with a
warm reception and you guys have always provided me with the best support.
I just want to say thank you!!!!
Bre-x
|
5/31/2010 2:04:46 PM
|
0
|
"Bre-x" <cholot...@hotmail.com>
|
One last try
Thought I would give it one more try. How do I run a calculation that uses a
field from 2 different tables?
Table A - field, current
Table 2 - field, out
current - out = ? to be placed in 'total' field in Table A
|
5/28/2010 3:03:01 PM
|
3
|
=?Utf-8?B?SHViYnlNYXg=?= <Hubby...@discussions.microsoft.com>
|
Error Message
Can anyone help please, I would like to get an answer to the problem before
Microsoft close down the Forum.
This is the message I posted earlier, for the full background to this,
please read my post (and Ken Sherien's kind answers) titled "Sub Forms" dated
18 May 2010.
Hi Ken
Access bing Access, I was probably a little premature in my excitement at
getting the thing to work.
I now have a dialogue box that pops up as Access is first opening up and
prior to the first screen being displayed saying :-
"The exprexssion is typed incorrectly or is too complicated, For example, a
|
5/27/2010 10:50:08 PM
|
1
|
=?Utf-8?B?UmF5IEM=?= <R...@discussions.microsoft.com>
|
Access Labels Maker Doesn't Work
Used to able to make labels from earlier editions of Access w/o any problems.
Since updating to "2007" I wind up with messages popping up and little boxes
asking for parameter values for Trim even though I use the Label Wizard and
would assume "the Wizard" would/should take care of ninty gritty details. I'm
a "user" not a developer or programer. How do I fix this problem so I can
just print some labels?
--
elderuser
|
5/27/2010 10:01:20 PM
|
7
|
=?Utf-8?B?dGVkIGNvbGxpbnM=?= <tedcoll...@discussions.microsoft.com>
|
HOW CAN I CREATE SIGN IN SHEETS
how can i create sign sheets
|
5/27/2010 8:13:50 PM
|
1
|
=?Utf-8?B?S2FuZXNoYQ==?= <Kane...@discussions.microsoft.com>
|
Linking Excel Files in Access
I have 4 CSV files that I need to somehow link together so that I can query
the data. I could manually add the data together but would prefer that is
was linked via Access so that it can be automatically updated each month (via
Peachtree). Some of the columns in each spreadsheet are the same (G/L
Account, Amount, Date, and Description). If I could pull these 4 areas from
each spreadsheet that would be perfect. My issue is (I think) that there is
nothing unique about each line so Access cannot capture all. Access can
automatically assign a unique number but it starts at 1 for
|
5/27/2010 8:09:10 PM
|
1
|
=?Utf-8?B?d2F0c29uc2NvdHRh?= <watsonsco...@discussions.microsoft.com>
|
Help with Function: Between Time
Hi,
Why this function is not working?
If a time follows between 12AM and 3PM it should show Day shift, anything
else Night Shift
If Time > #12:01:00 AM# < #3:00:00 PM# Then
MsgBox "DAY SHIFT"
Else
MsgBox "NIGTH SHIFT"
End If
|
5/27/2010 2:07:10 PM
|
3
|
"Bre-x" <cholot...@hotmail.com>
|
totals do not display unless user clicks on text box
I am relatively new to access. I am using access 2007 to create a
report that contains subtotals. When the report is displayed on the
screen the subtotals are blank. When the user clicks on the subtotal
text box then the value appears. The user has to click on each
subtotal in order to make the value appear.
Has anyone experience this problem? Is there a workaround or
solution?
Thanks
|
5/26/2010 4:01:50 PM
|
3
|
nickname <il...@pegasystems.com>
|
Is it worth it for me to learn Access?
Hello everyone,
I've been wondering this question for a few weeks now. My situation is that
I generate many "runlogs" from my reactor that have various outputs, such as
temperatures, sensor data, etc. versus time. Very frequently, I want to
compare one runlog to another. Sometimes I want to average the output of
several runlogs together. I currently have a macro made up in Excel that
analyzes the files, but it really is getting harder to manage all the excel
files floating around.
So is it worth dumping all the excel output from my macro into a database
and comparing th
|
5/25/2010 5:58:01 PM
|
11
|
=?Utf-8?B?TWF0dCBT?= <Ma...@discussions.microsoft.com>
|
Query joining two tables with different dates
I'm sure there is a simple solution to this, but being fairly new to Access I
would appreciate some assistance...
I have a query that joins two tables. One table has call details for each day
that an agent works. The other table has details for each call that is graded
for each agent. However, calls can be graded on days that the agent does not
work. When joining the tables, the query will only display calls graded on
dates that the agent works.
This is what I would like to do to correct this: If there was a call graded
on a day that the agent did not work, this data be rolled up
|
5/25/2010 5:25:04 PM
|
12
|
"bscott" <u60...@uwe>
|
Filtering Records
Hi,
Problem :
I have a DB table with 56 fields and form is on 1 screen. If I filter records
I need result of filter to display in form view. I know it is possible in
datasheet view - but it is not good for me because I need see all fields and
in datasheed view with 56 fields it is a very long row an I have to use
scroll bar for meny filds..
Any suggestion?
Thank you in advance.
lad5ko
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-gettingstarted/201005/1
|
5/24/2010 8:28:41 PM
|
7
|
"lad5ko via AccessMonster.com" <u12...@uwe>
|
Combine number in a Table field
Is the following possible
I have Table 1 with Field IDTable1 [autonumber] [and other fields] and Table
2 with Field IDTable2 [autonumber] and Field GRV set to text [and other
Fields]
Is the following posibble:
Can I automatically generate a number that can be used in GRV field of Table
2 consisting out of a combination of IDTable1 and IDTable2 written as
IDTable1/IDTable2 in the GRV field of Table 2, Example IDtbale1 [primarykey
autonumber] combined with IDTableT [primary key autonumber] automatically
written in the GRV field of Table 2 as example 12/100
I want this GRV nu
|
5/24/2010 7:06:06 PM
|
2
|
=?Utf-8?B?RnJhbms=?= <Fr...@discussions.microsoft.com>
|
Bill of materials
Hi. I need an Access (or maybe Excel) template to help me create bills of
materials. A worksheet with a list of items (record) with the fields "Part
number", "description" and "cost". I then need to be able create a BOM by
entering the "part number" and have the "description" and "cost" as well as
"selling price" (cost + profit %) calculated.
Thanks in advance. Chris.
|
5/22/2010 11:18:01 PM
|
11
|
=?Utf-8?B?RWdhbg==?= <E...@discussions.microsoft.com>
|
update a table based on a sum query
Hi All,
I have seen the zillions of answers to this that state "never add a total
into the table.." But there are cases, such as mine when it is prefered.
I want to update a project table with the final invoice cost. I want it
entered as a hard figure so that I can then export the table for accounting
purposes. Additionally, once an invoice has been generated, there isn't any
need for the total to ever, ever change! In fact it shouldn't.
So the question is.... is there a way to do this?
To update a table with a value from a sum query?
Thanks for any help.
--
Message po
|
5/22/2010 5:15:38 PM
|
2
|
"granola911 via AccessMonster.com" <u56...@uwe>
|
Saving Monthly Accounts and starting a new Month?
Hi Everyone,
I really enjoy the Access Database System it has helped me a lot with my
accounts but I must be doing something wrong because, I keep opening new
databases for each month instead of it following on from the previous month
and using the same "Categories!."
So my question is How do I save the previous month and let it be stored, and
start a new month on the same system or page but without adding up what has
been put in the system... If you know what I`m on about.
Thank you
Angeldelight... melting in the UK weather :)
|
5/22/2010 2:38:01 PM
|
1
|
=?Utf-8?B?QW5nZWxkZWxpZ2h0?= <Angeldeli...@discussions.microsoft.com>
|
this might be about linking tables
At work we are going to be setting up a MS Access database for some
geological data. We are going to be getting some other data in .csv format
that we would like to add to this database.
What we have is a collection of location ID's and corresponding sample
numbers. Not every location ID will have a sample taken from it. We will be
getting assay results in from the lab on each sample taken, and I want to
link the assay sample results (the .csv files) to the appropriate sample IDs
in the database.
How do I do this? Is it as easy as making a table for the .csv data and
linkin
|
5/20/2010 6:21:01 PM
|
9
|
=?Utf-8?B?YWxpYQ==?= <a...@discussions.microsoft.com>
|
Keeping DB structure but adding new tables
Hi,
I'm a complete novice just dibbling my toes in the water.
I've been using Excel to analyse my data which I receive as .csv files. for
e.g. School, Student and Exams. Each year the data is new as the students
change.
I've set up an Access database with queries from which I'm planning to
create reports.
Next year I would like to be able to just import the .csvs into a copied
database and not lose the queries and reports etc.
Is it doable and how would I go about it? Bear in mind that it has taken a
lot of reading and trial and error just to get this far
Many than
|
5/20/2010 4:55:01 PM
|
4
|
=?Utf-8?B?RGlkZHk=?= <Di...@discussions.microsoft.com>
|
what's your favorite windows
Hi my favorite is windows vista it's easy to use an it's feel like free to use
Rgds
Dinuka
|
5/20/2010 8:23:01 AM
|
1
|
=?Utf-8?B?ZGludWth?= <din...@discussions.microsoft.com>
|
Inventory transaction table - set up
Hi,
I am a new user of Access 2007. I am creating a database to track inventory
quantities by locations. I have a Products table and a Locations table, and I
am wondering what is the best way to set up a Transactions table. We have
three types of transactions:
1. Move products from one location to another.
2. Introduce new products to a location.
3. Deplete products from locations.
We would like to keep a record of transactions, by transaction ID and date.
But the more important function will be to report on current Product
quantities by Location.
What fields should I include
|
5/19/2010 10:56:01 PM
|
4
|
=?Utf-8?B?U0Q3MDc=?= <SD...@discussions.microsoft.com>
|
Queries to reduce a set of data pairs
I have a table of values which has the following fields:
AreaElement, Joint, GlobalX, GlobalY, M_sd
This list consists basically in a long list of M_sd values. Each
AreaElement has 4 Joints, each one with GlobalX and GlobalY as it's
coordinates along with a M_sd as it's value. Yet, although different
AreaElements may share common Joints, all M_sd values are independent
of each element. So, for a small example, consider the following
sample:
<sample>
AreaElem Joint GlobalX GlobalY M_sd
1000 ~1044 6.32 11.91 12.17
1000 ~919 6.32 12.15 10.50
1000 ~1052 6.56 11.91 13.50
1000
|
5/19/2010 8:14:01 PM
|
3
|
Rui Maciel <rui.mac...@gmail.com>
|
I am using Window 7 and Access 2007
The trim function gives me a compiler error
SortName: Trim([Members]![LastName] & ", " & [Members]![FirstName] & " " &
[Members]![MiddleName] & " " & [Members]![Suffix] & " " & [Members]![Title])
The function works using windowXP & vista
Any suggestions would be helpful.
|
5/19/2010 7:43:41 PM
|
3
|
"Als Hotmail" <altam...@hotmail.com>
|
How do I append non-matching records
I want to append records to tableB only when the key field in tableA does not
match the key field in tableB
|
5/19/2010 6:22:01 PM
|
2
|
=?Utf-8?B?T21p?= <...@discussions.microsoft.com>
|
How to make staff sales report and stock report
Dear All
First table with names. second table with store items.
I read the northwind for preparing invoices which does not fit my requirement.
Pls give me links for me to read up on how to prepare report on persons who
have made purchases by linking these two tables.
Pls give any links where I can read on how to go about to prepare a report
on persons who made purchases; report of stores opening stock, quantity sold
and stock balance etc.
Edit/Delete Message
|
5/19/2010 5:09:01 PM
|
1
|
=?Utf-8?B?Q0FQVEdOVlI=?= <CAPTG...@discussions.microsoft.com>
|
Crunch numbers with MS Access: is this possible?
I have an Excel spreadsheet which consists of two tables, one with a
list of tensions measured in specific nodes and another with the list
of nodes and their coordinates. Is it possible to import that
spreadsheet into Access and, with that data, perform some simple
number crunching such as adding both tensions and distances?
Thanks in advance,
Rui Maciel
|
5/19/2010 4:32:36 PM
|
2
|
Rui Maciel <rui.mac...@gmail.com>
|
Database replication using Access 2003 in Windows 7
I am running Access 2003 and have recently upgraded to Windows 7 from XP. I
have created a database which uses the Replication function to enable several
users in different locations to update data. Because I transferred the design
master to a new laptop, I have had to recover the design master. However, one
of the forms now will not open and I get a message saying that Access has
stopped working and Windows is looking for a solution. The database then
closes. The form contains tabs, although other forms that contain tabs work
ok. I get the same problem if I try to open the form
|
5/19/2010 9:36:01 AM
|
2
|
=?Utf-8?B?RnVycnlIQQ==?= <Furr...@discussions.microsoft.com>
|
Sub Forms
I Have two Tables. the first holds various information with it's own Primary
Key and also a Supplier ID "SW_Opp" that identifies a Supplier. The second
"Suppliers" Table holds the "SupplierNo" number as the primary key and lists
the "SupplierName" plus other info about the supplier. The first table
"SW_Opp" is the same as the second table "SupplierID" and they are linked in
the Relationship.
I have a Sub Form that has its record source from the First Table, so all
the Text boxes have their control Souce based on that Table. One of the Text
Boxes in that sub form is called "SW_OP
|
5/18/2010 8:21:01 PM
|
15
|
=?Utf-8?B?UmF5IEM=?= <R...@discussions.microsoft.com>
|
Rounding Time
Hi,
I am working on a Time Clock.
I need some help to create two rouding functions.
PUNCH IN TO
between 8:00:01 to 8:14:59 8:15
between 8:15:01 to 8:29:59 8:30
between 8:30:01 to 8:44:59 8:45
between 8:45:01 to 8:59:59 9:00
PUNCH OUT TO
between 3:00:01 to 3:14:59 3:00
between 3:15:01 to 3:29:59 3:15
between 3:30:01 to 3:44:59 3:30
between 3:45:01 to 3:59:59 3:45
Thank you All!!!
Bre-x
|
5/18/2010 5:03:17 PM
|
13
|
"Bre-x" <cholot...@hotmail.com>
|
How to create a username and password in Access
I have created a database with all the functionalities in it. I am now
interested in creating a username and password to allow administrative staff
to access it.
|
5/18/2010 1:41:01 PM
|
2
|
=?Utf-8?B?SG93IHRvIGNyZWF0ZSBhIHVzZXJuYW1lIGFuZCBwYXNzd29yZCBpbg==?= <How to create a username and p
|
Access - update existing table
Hi, i have a on going database for my employees and i would like to add
another column employee ID number. On the existing table the column employee
ID is there but no number associated to the employee. I want to import from
excel. the excel file has all employees name and employee number. EE name
is the primary key and i only want to import the EE ID number only, the rest
of the column in the table leave as is. can someone help me with this?
thanks
|
5/18/2010 12:44:55 AM
|
1
|
"accessnote" <u60...@uwe>
|
Run-time Error 2585: Unable to Close Form
Hi, I need some help here, no matter what I do I can not close the FS form.
On my FS For I have on single text box (tlogin) and I am using the Enter
event to
to some "systems checks" then launch the Main Form (FMAIN)
Private Sub tlogin_Enter()
On Error GoTo Err_Command_tlogin_Enter
If IsNull(Me.tlogin) = True Then
Exit Sub
End If
var_user = Me.tlogin
'CHECK IF EMP IS ON TC
If emp_is_tc(var_user) = False Then
'EMP IS NOT ON TC
'CHECK IF EMP IS ON DBA
If emp_is_dba(var_user) = False Then
'EMP IS NOT ON DBA, EXIT SUB
Responce = MsgB
|
5/17/2010 3:33:44 PM
|
2
|
"Bre-x" <cholot...@hotmail.com>
|
Report Totals
Can anyone help me please. I'm totally new to Access 2007 but have started to
design a database for my husbands shed business.
I have an Orders Table and a Supply Table. There may be several supply
instances to complete one order.
The report which I'm having problems with is Orders Part Supplied. I've
summarised the important fields below. The report is grouped on Order No.
Order No Qty Date Supp'd
Qty Supp'd Total Qty O/S
10145 12
15/05/10
2
|
5/17/2010 3:11:57 PM
|
4
|
"Georgethefence" <u60...@uwe>
|
Mailimport
How shall I do to import mail from Mozilla Thunderbird?
|
5/16/2010 2:25:43 PM
|
1
|
"Leif Hulthe" <l...@gotigard.se>
|
How to make an activity calendar for school travel and leisure 3 m
I need to make an activity calendar that has to do with travel and leisure
for three months.
|
5/14/2010 7:55:01 PM
|
2
|
=?Utf-8?B?ZW1tYSBkaWxsb24=?= <emma dil...@discussions.microsoft.com>
|
F- in Access
I'm throwing myself at the mercy of the experts and asking for help. I
volunteered to help my local library- fundraiser group create a database in
order to put their annual event names in a computer rather than the stack of
loose papers and notes they have in a three inch file. Each year they have to
spend days handwriting invites and sorting through the names etc and I wanted
to put it in a specific type of database. I thought I would be able to create
it but after spending every spare minute I had over the last month or two
watching tutorials and making a thousand broken databa
|
5/13/2010 6:19:01 PM
|
17
|
=?Utf-8?B?c2h1bWF0ZTYy?= <shumat...@discussions.microsoft.com>
|
Database name added to link tables!
Hi,
I am a very new Access database user.
I am using the Microsoft Access function called “Get External Data” to
create link tables to an Oracle 11 G R2 database. My problem is that Access
is adding the database name to the names of all the link tables instead of
just creating link tables with the original Oracle database name. Eg a table
on the Oracle database is called “com_user” but is created by Access as a
link table called “databasename_com_user”
Unfortunately all my automated test scripts that use the Access link tables
fail because they do not recognize the link table n
|
5/13/2010 2:46:01 PM
|
1
|
=?Utf-8?B?TGVlNzc2Mw==?= <Lee7...@discussions.microsoft.com>
|
Column Name
Hi
I am using this code to send data into excel
Set rst = CurrentDb.OpenRecordset("SELECT Temp.* FROM Temp;")
rst.MoveFirst
Do While Not rst.EOF
objSht.Cells(iRow, 1).Value = rst!main_id
objSht.Cells(iRow, 2).Value = rst!year_id
iRow = iRow + 1
rst.MoveNext
Loop
rst.Close
End With
But how would I modify my code if I dont know the name of the columns?
objSht.Cells(iRow, 1).Value = rst!column1
objSht.Cells(iRow, 1).Value = rst!column2
objSht.Cells(iRow, 1).Value = rst!(1)
objSht.Cells(iRow, 1).Value = rst!(2)
Thank you all
Bre-x
|
5/13/2010 2:09:21 PM
|
6
|
"Bre-x" <cholot...@hotmail.com>
|