Use Form to prompt for report criteria
I have a form that I am using to prompt for report criteria. When I run the
query outside of the form, it works fine - prompting me for both criteria.
However when I run from the form, I get #Error#. Can you see what I am doing
wrong? Thanks in advance.
I have two combo boxes that I have put in my underlying query. In the
fields of the query are:
[Forms]![frmSelection Criteria Form]![OfficeNumber]
[Forms]![frmSelection Criteria Form]![Manager]
On the OnClick event is the following:
Private Sub Command6_Click()
On Error GoTo Err_command6_Click
Dim stDocName As String
st...A macro to increase line spacing
I'm trying to make a macro on my Word 2007 "Quick Access Toolbar" that will
add 6 points after each line that I've selected. When I record a macro to do
this, it adds the 6 points fine, but then sets the indent at "0", which was
what the paragraph had when I recorded the macro. What I'd like it to do is
ignore the indent of whatever paragraph I'm using the macro on, leave it as
it is, and just add 6 points. Any suggestions how to do that?
Here is how the Macro reads in VB--perhaps if I alter some of the parameters
that would do it. Thanks for...Save formatted text from RichEdit control to rtf-file
How can I save the text from Rich edit control (2.0) to *.rtf , *.txt ,
I tried to get the buffer and putting the buffer to file, then saving
but the text in the file is something different.
Please let me know what to do?
Here is the Code I ma using:
mFile.Seek( 0, CFile::begin );
int iTotalTextLength = m_oChatMessageControl.GetWindowTextLength();
HWND focusWnd = ::GetFocus();
cBuffer2 = m_oChatMessageControl.GetSelText();
LPTSTR...All macros failing part way through with different error messages
All the macros I have in various workbooks are failing - usually part-way
through - with different error messages each time. When I check the debugger
and try to edit the text, there seems no reason why there should be a
problem. The macro has so far stopped on instructions to :
- open a workbook
- select a worksheet
- paste a column in a different place
Several times the macro has just stopped running without completing and
without showing an error message.
I cannot run a host of urgent daily reports without using the macros. Please
NO way to help unless you tell us exactly...Excel pivottable with OLAP cubes saves names, not keys
Is there a way to let the Excel XP pivottables/OLAP cubes
reports save the member keys, not meber names? The members
disapperas in the reports when the names are updated i the
dim-table, and this is a problem.
All my Analysis Services dimension levels got keys unique
and names not unique. I can't set the dim-property keys
unique, because they are not.
This is the report info (from Frontpage/OWC, cant find it
A...converting tabular structures in a Word document into an actual table or reading data from the tabular structures using VBA code
I have a macro which can read the last cell/column of all tables in a
Word 2003/2007 document and store the data in an MS-Access table. But,
some Word documents have the data in structures like a table format
but are not actually tables. The structure looks like a table, but the
table borders are actually line connectors. These documents were
created by a software(VeryPDF PDF to Word converter) which converted
the PDF documents(the original format these documents were) into Word
1. Is there a way I can convert/replace the tabular structures with
actual tables in Word so t...Twist Data?...
I've got the following in a dataset:
19 30 1200 FI FI 20030906 36
19 30 1324 FI FI 20030906 36
and I want the following result:
19 30 1200, 1324 FI FI 20030906 26
Any guess on how to do this?
Not quite clear:
The data is arranged in columns, I assume
It looks as if both items in the same column are the same, you want just one
item, otherwise the one in the top row first, then the one from the bottom row.
But what about the last 36s that should yield 26? Typo?
Does the dataset have more columns or more rows or both? And how big is it?...moving payables data from open to history
A client says that someone imported data about a year or two ago into Great
Plains from their AS400.
Many payables documents that were imported should have been coded during the
import as open, instead of history. The client knows that she can take care
of this herself within two hours, by simply turning off the posting to the GL
and entering and posting the payables documents to move them to history.
But, she is wondering if there is a quick and easy way to do this on the
I'm familiar with the open and history payables tables within GP. And, I
know through a T...macro #2
I am pretty new to using (or attempting to use) a Macro in a workbook. I am
having trouble following how and what to do to even start the process; ie If
there needs to be a worksheet already in progress or can I start from a new
THEN where to go from there.
Can I have some help in this area? Can some one supply me with a sample
Any help would be greatly appreciated
The best way to get started with macros is to use the Macro
Recorder. Go to the Tools menu, choose Macros, then Record New
Macro. Then, carry out some simple tasks and examine the code
that is produced.
...merging 2 cells without losing data?
How can I merge 2 cells without losing data from the other cell?
Not possible I'm afraid. Try placing the dat from both cells into one
and use "Center across selection" under Format>Cells>Alignment
Merge cells always end up causing grief. they are best avoided.
***** Posted via: http://www.ozgrid.com
Excel Templates, Training & Add-ins.
Free Excel Forum http://www.ozgrid.com/forum *****
"bob" <email@example.com> wrote in message
> How can I merge 2 cells without losing data from the other...Problems Converting Data from Quicken 2001 Deluxe to MS Money
I have a relatively new Compaq Desktop (2.5 GHz Celeron with 512 MB RAM).
I have a Viewsonic Pocket PC and I wanted to use it to track my financial
data so I purchased Money 2003 Standard.
I tried several times to convert my Qucken Data (it's a big file--I've
been using Quicken since 1995). My Quicken program is Quicken 2001
Anyway, the MS Money program started to convert and after a few minutes
"Your Quicken file could not be converted. Money could not convert your
Quicken file. You might have run out of disk space or system memory. Try
closing othe...Vb.net 2008 ContextMenuStrip logical error when running code
I have a connectmenustrip item that when clicked runs the following code
Now if the event is called by the button i.e. cmdDeleteingBooking.Click the
linq query returns the appropriate value.
However when called by cntMnuCancelBookingItem.Click is returns 0 even if a
checkbox is of 'TRUE' value.
Debugging shows the code runs exactly the same code (which loops around rows
in a datagridview checking if the checkbox has been checked).
Could someone explain the reasoning why the same code would return different
Private Sub cmdDelete...RMS Status Codes
Just wondering if anyone has a list of what the RMS Batch.Status codes 0-15
mean? I can't find them defined anywhere. I'm specifically looking at how
to identify Blind Closes so I don't count them in totals until they'e been
There is a Knowledge Base Article that covers the different Batch Status
codes from 0 - 31. Just search for 'batch status codes'
RMS Systems Inc.
"Zim" <Zim@discussions.microsoft.com> wrote in message
news:C72515DB-AD45-4C7D-B8DE-0A18E4A6D0D0@micr...Excel worksheet with VBE codes don't work elsewhere
Some of my excel worksheets with embedded controls and VBA codes don'
work when I open it on another PC. Is there another way to make i
lazybear's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=3519
View this thread: http://www.excelforum.com/showthread.php?threadid=54955
Specifically what problems are you having? Saying "don't work"
means absolutely nothing.
Microsoft MVP - Excel
Pearson Software Consulting, LLC
ww...Transformation of data into columns
I have the data from a flattened spreadsheet in a table in the
f1 f2 f3
period to: Scheme1 Scheme2
31/01/2005 Net Gross
28/02/2005 Net Gross
31/03/2005 Net Gross
30/04/2005 Net Gross
31/05/2005 Net Gross
30/06/2005 Net Gross
31/0...How can I sort duplicate text data in excel?
I have a large list of noames that I need to make sure that none of them are
duplicated. Is there a way to have excel check it quisker than me reading
every name until I find a duplicate?
After selecting your data go to filter Advanced filter and check "Unique
You can even copy it to another area all uniques entries if you want to ...
"TinaScheu" <TinaScheu@discussions.microsoft.com> wrote in message
>I have a large list of noames that I need to make sure that none of them
>...Need code snippet to read offline PST file
I have a PST file in my local hard disk and have requirement to read
PST file and parse through all folders and then each message item in
all folders and then segregate them to different folders based on
Please kindly send the code for the above requirement.
Thanks & Regards
You're going to have to write your own code. Do you know anything about
Outlook programming at all? You can start out by looking at information and
code samples at www.outlookcode.com.
[MVP - Outlook]
http://www.slo...Data Validation List not showing
I'm using Excel 2003. My data validation lists have stopped working on one
sheet in my workbook. It is working on all other sheets.
I have googled the problem and found the following advice:
1. Make sure freeze panes is off.... check.
2. Select "Show All" under Tools->Options->View->Objects ... check.
The problem remains. Any ideas?
"Stopped working" doesn't do much to describe your problem. When you select
one of the "stopped working" Data Validation cells, do you see the drop-down
arrow to the right of the cell? When you select t...Trying to create an Update query based on HR data to find upline V
Hi All, looking for some advice. I have an HR table that contains employee
information but does not contain management chain info. Basically i am trying
to determine who the employees upline VP is. The fields i have to work with
are [Employee Name], [Manager Name] and [Job Title]. I figure the logic would
be to check the employees' manager and if the manager is a VP (based on job
title), return the manager's name to a field called [VP]. If the manager is
not a VP then check that manager's manager, so on and so forth until a VP is
Any ideas would be much appr...Insert,Update Data in sage (MS Access Linked tables) using Vb.net form
I am developing application using vb.net which requires integration with SAGE
LINE 50 (Accounting software ) V11... The data which SAGE is using is MC
ACCESS 2003 database... with linked tables in it... Now I Have developed the
Sage connection using ODBC which works fine when reading the record but
cannot Add or Update record into the Linked tables.... When i debug the
program the error is at the line where it has...
Can anybody Help ?????
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/acce...Filling Web Form
Dear freinds Hello,
I have written code in vc++ using MFC to fill the Webform using HTTP post
method and I'm able to fill the form but I'm facing a problem that I'm
unable to fill login name and password. So any one amongst you have any Idea
or help then please help me
...Add new record through Form view
I have a table which is linked to a form, i would like to have a command
button which will add a new record to my table.
On the click of command button it should view the last empty row of my table
in a form.
On Sat, 26 Dec 2009 11:11:01 -0800, Ranjith Kurian
>I have a table which is linked to a form, i would like to have a command
>button which will add a new record to my table.
>On the click of command button it should view the last empty row of my table
>in a form.
The Click event should show [Event Proced...Macros #34
I am trying to edit and create some macros in an excel spreadsheet that was
created by someone else. There are macros for this spreadsheet but for some
reason when I go to Tools -> Macro -> Macros it doesn't show any in the list.
When I go to Tools -> Macro -> Visual Basic Editor there is code for the
macros. I have some buttons on the spreadsheet that I want to assoicate with
the macros but the buttons almost seem like they are locked, when i write
click them nothing happens but a shortcut menu should appear. Is there maybe
some special security on there I don't...Macro
Here is one for you experts - I am a novice
I want to add a macro to a worksheet that will print selected information
held on certain rows of the worksheet.
Once the 'button' has been selected a mesage box will pop up asking the user
to input which row number he/she wishes to print.
On input that number is matched to the corresponding row of the worksheet
and that row is copied (without any formula - just cell values) and pasted
into another worksheet where it is placed into other formats and printed.
Seems like a simple(!!) job - but far to difficult for me to programme
Can an...macro for invoice totals
I have this macro that inserts lines and copies a invoice header.
Now I want to total the invoice.
In the first row after a value in B in E the word totals must be inserted,
H, I and K must be summed the amount of lines differ on each invoice but
there is a heading from where it must be summed. CTNS(H), QTY(I), Total(K)
Thanks a lot.
Public Sub Deilv2()
Dim LastRow As Long
Dim row_index As Long
Dim rng As Range
Set rng = Range("B2:K25")
Application.ScreenUpdating = False
LastRow = ActiveSheet.Cells(Rows.Count, "b").End(xlUp).Row
For row_index = LastRow - 1 To 26 S...