I'm running the following code to generate an email from a report.
Quote:
Function ExportHTML3() Dim strline, strHTML Dim OL As Outlook.Application
[Code].....
But I don't really know much VBA and I found that code on the internet, so I can't figure out how it's doing that and if I can stop it. Or is there another way to get the text from the HTML file into the Email body, which brings the bold formatting with it, like the following.
I am again having problems with these damned commas, they seem never to conform to my knowledge.I tried to convert the otherwise good and working update query into an sql but i got red colours showing that Access does not accept my commas.I tried with single commas ' or with double commas """" but obviously i jumbled the commas up with no result.Would you help me convert the update query below into an sql ?
UPDATE products SET products.items5 = DLookUp("Diff","qryNetDiff","ProductID=" & [ProductID]) WHERE (((products.Productid) In (SELECT ProductID FROM qryNetDiff)));
I have several fields that were set up as text fields since the numbers would never be used for calculation. But now my users want to see 100,000 instead of 100000. I have looked everywhere for an answer but do not know if it is possible without retyping the data. The text or rather the numbers that are text can be from anywhere of 1 to 1,000,000 plus. They are just used to show population figures. How to do this with formatting?
Hi, I am converting a database from Access 2002 to Excel 2002 but when converted each value in the spreadsheet has the value ' directly before it. Is there anyway around this problem.
I would like to export fields from Access 2003 with a comma pragmatically added between each field as a CSV file.
I am able to export the fields without the comma, but the Accounting Program that I want to use for the importing of the data requires a comma to separate each field.
I'm having multiple problems with my database like things such as -
i'm currently working on the Query 2 - On the Phone database (ignore Query 1) and i want to search for multiple plot numbers preferably in one parameter prompt with a comma to seperate numbers. (this could be a multitude of numbers so i would like to be able to input as many as needed). Also when i do search on this query since the Criteria is a 'Between' Value i would expect everything between the 2 numbers input to show up - but a lot of numbers out of the range show up too - why is this? (The Numbers are like "69 to 136" and they will show up - but 1-69 and 136-170 would too
I would also like to implement the search results from Query 2 into the Form i currently have made but it just opens up a access table when the search is made?
i cannot link my database as it is too big for the server - But here are the Criteria for Query 2:
Plot No - (criteria = Between [Enter First Plot No:] And [Enter Last Plot No:]) Site - (criteria = Like "*" & [Enter Site:] & "*") Product - (criteria = Like "*" & [Enter Product:] & "*"
The Query is the one im most concerned about , i can live without a form.
Ok so in excel I have some numbers that are stored as text. The reason being that they are zip codes and some begin with 0 and excel doesn't want numbers to start with 0....so when I import these into an access field that has an input mask for zip codes...will it convert these correctly since the field is a text with input mask?
I have 2 fields that I would like to automate if possible
One field is called "p/o number" and another field called "line no"
These fields are part of an ordering database
Let say I have 200 items to purchase form 10 suppliers
And form example 20 items from each supplier
What I do at present is put the order number on each line item and the line number
example
p/o number line no
1 1 1 2 1 3
2 1 2 2 2 3 2 4
What I want to do is just put the first po number in the required line . Put the first line number in i.e. "1" and the macro will complete all the p/o numbers and line numbers for me as per the ones marked in red.
I am trying to create a list of values in a field separated by commas. I have done this in a query as follows:
[Field1]&", "&[Field2]&", "&[Field3] and so on.
However, when Field2 is null, the result is two commas between Field1 and Field2, but I only need one. What function can I use to eliminate the extra commas when fields used in the concatenation are null?
I have a table with fields like this one but the weeks go all the way up to 52. What I am trying to do is count the number of consecutive zeros and if it is more than five, count how many of the following fields have a number in them and if that number is less than the number of zeros preceding it identify that person.
For example Joe would be identified below because he had 6 consecutive zeros and then he had 5 weeks of numbers immediately following the string of zeros. Bob would not be identified because he had 5 consecutive zeros and then 5 sets of numbers immediately following the string of zeros so the zero frequency isnt higher than the number frequency immediately following.
I have 2 reports that are exporting to 2 different .txt files. Currenlty, I am using the transfertext function in access. What is the best way to combine these 2 reports into one .txt file? I have 2 different specification criteria being used, but I need all the data in 1 report.
What I want to do is to export about 300 rows of records at a time from a table to a text file (text001.txt). The next 300 will be in text002.txt and so forth.
What I am doing right now is -- I am looping through all the fields [rs(0)-rs(50)], put in a variable and then print to the text file then go to the next row.
Is there a way to print the whole row to a text file instead of looping through all the fields then print it.
Does anyone know how I can get a table thats been sorted by a specific field to export to .txt in its sorted format? For some reason whenever I have it sorted by one field and save its new formatting, it exports sorted by another field. Keep in mind it exports the way the table was originally sorted when it was first created.
I was just wondering if anyone knows of any way to export email addresses held within an access database to Outlook, using office 2000? I work for a small charity who have a very large contacts database in access, but are now starting to send some of our info electronically and it would be a major time saver if we could send email addressed directly to outlook.
Hello. I've searched around the board and help files and couldn't find a straight answer for this. I have 7 or 8 different queries. Is there a way to export Query 1 to Sheet 1 of my excel workbook, then Query 2 to sheet 2 of the workbook, and so on? Thanks.
I want some guidance in regards to how should I export access form as a report to excel. I already have fields with formulas in it and here I have fields where I have written down the numbers, so when these numbers get exported to excel. Excel will be populated with with these numbers and all the calculation will be automatically done.
I hope I am making sense here.
I have fields in access that should export through a button and populate on excel sheet.
is there any vb scripting for this, I rem seeing something in the same context few months back, but I can't seem to find it rite now.
I am exporting a table into a text file. I have an intrest rate that is formatted in the table as as five characters past the decimal point xx.xxxxx. However, when I export it to a text file, I loose my 3rd through 5th position. Any ideas on how I can export to text and still keep all five positions past the decimal? The field is currently formatted as a double number in Access. Thanks for your input.
I often have to export data from a table to a .csv (text) format. It is very important that the data remains in the right order. I even add an indexed auto number to ensure this happens. Sometimes, but not always, the data gets out of order. Not completely scrambled but chunks of records just in the wrong place.
Has anyone come across this before or got any idea what causes it?
I'm trying to export an access 2000 table to a text file. The table doesn't have a primary key, but one of the fields is indexed (contains duplicates ) and sorted. For some reason, access ignores the table format and exports it not sorted.