<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5273573338657935921</id><updated>2011-11-27T15:27:13.880-08:00</updated><category term='Visual Basic'/><title type='text'>MS Access Developer</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ms-access-developer.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5273573338657935921/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://ms-access-developer.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Carlo Linga</name><uri>http://www.blogger.com/profile/02175752740466849637</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://4.bp.blogspot.com/_YH_UJoVV8GU/SXbHxDuvPwI/AAAAAAAAAB0/XOF9GDdaChc/S220/me.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5273573338657935921.post-7308630719866450601</id><published>2009-09-23T00:14:00.001-07:00</published><updated>2009-09-23T01:20:07.333-07:00</updated><title type='text'>Convert a number to words</title><summary type='text'>Here is a function that converts a given numeric value to words in dollars or other currency.  You can use this for your check writing application where you need to put the dollar amount in words in your checks.For example:? InWords(1234567890123.45)should return:One Trillion Two Hundred Thirty Four Billion Five Hundred Sixty Seven Million Eight Hundred Ninety Thousand One Hundred Twenty Three </summary><link rel='replies' type='application/atom+xml' href='http://ms-access-developer.blogspot.com/feeds/7308630719866450601/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ms-access-developer.blogspot.com/2009/09/convert-number-to-words.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5273573338657935921/posts/default/7308630719866450601'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5273573338657935921/posts/default/7308630719866450601'/><link rel='alternate' type='text/html' href='http://ms-access-developer.blogspot.com/2009/09/convert-number-to-words.html' title='Convert a number to words'/><author><name>Carlo Linga</name><uri>http://www.blogger.com/profile/02175752740466849637</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://4.bp.blogspot.com/_YH_UJoVV8GU/SXbHxDuvPwI/AAAAAAAAAB0/XOF9GDdaChc/S220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5273573338657935921.post-3923161586318665660</id><published>2009-09-04T09:04:00.001-07:00</published><updated>2009-09-05T23:13:21.764-07:00</updated><title type='text'>Allow User to Add Values in Combo Box</title><summary type='text'>It is often good practice to provide users with a list of values that they can assign to a field when entering data into a Microsoft Access database form. With the use of pre-filled lists like a combo box, you can prevent the user from making incorrect data entry, and minimize the chance of spelling mistakes or incorrect choice of values.On some occasions, however, you may wish to allow the user </summary><link rel='replies' type='application/atom+xml' href='http://ms-access-developer.blogspot.com/feeds/3923161586318665660/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ms-access-developer.blogspot.com/2009/09/allows-user-to-add-values-in-combo-box.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5273573338657935921/posts/default/3923161586318665660'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5273573338657935921/posts/default/3923161586318665660'/><link rel='alternate' type='text/html' href='http://ms-access-developer.blogspot.com/2009/09/allows-user-to-add-values-in-combo-box.html' title='Allow User to Add Values in Combo Box'/><author><name>Carlo Linga</name><uri>http://www.blogger.com/profile/02175752740466849637</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://4.bp.blogspot.com/_YH_UJoVV8GU/SXbHxDuvPwI/AAAAAAAAAB0/XOF9GDdaChc/S220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5273573338657935921.post-6626697527596188881</id><published>2009-08-26T05:40:00.001-07:00</published><updated>2009-08-31T07:40:25.438-07:00</updated><title type='text'>Opening a Dialog Form When Printing a Report</title><summary type='text'>Before printing a report, you normally would want to enter report parameters in a dialog box such as the following:



The dialog form will popup when you open the Payroll Register report shown below:


To do this, we just need to put a code in the Open event of the report to open the dialog form as follows:

Private Sub Report_Open(Cancel As Integer)
  DoCmd.OpenForm "frmReportCriteria", </summary><link rel='replies' type='application/atom+xml' href='http://ms-access-developer.blogspot.com/feeds/6626697527596188881/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ms-access-developer.blogspot.com/2009/08/opening-dialog-form-when-printing.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5273573338657935921/posts/default/6626697527596188881'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5273573338657935921/posts/default/6626697527596188881'/><link rel='alternate' type='text/html' href='http://ms-access-developer.blogspot.com/2009/08/opening-dialog-form-when-printing.html' title='Opening a Dialog Form When Printing a Report'/><author><name>Carlo Linga</name><uri>http://www.blogger.com/profile/02175752740466849637</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://4.bp.blogspot.com/_YH_UJoVV8GU/SXbHxDuvPwI/AAAAAAAAAB0/XOF9GDdaChc/S220/me.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_YH_UJoVV8GU/SpvH9wOjIlI/AAAAAAAAAEA/UyBfh0i0G14/s72-c/report_parameters.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5273573338657935921.post-3700511693324801958</id><published>2009-08-12T04:48:00.000-07:00</published><updated>2009-08-31T07:41:32.066-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual Basic'/><title type='text'>Convert Numbers into String with Ordinal Suffix</title><summary type='text'>The VBA code below allows you to represent a numeric value as its ordinal position in a set. The VBA function takes a numeric value and returns the number with the correct ordinal suffix as a string.
For example:
strOrdinal(1)
returns “1st”, and
strOrdinal(42)
returns “42nd”
The strOrdinal function uses the Mod operator to get the last two digits of the number. For all values between 11 and 19, </summary><link rel='replies' type='application/atom+xml' href='http://ms-access-developer.blogspot.com/feeds/3700511693324801958/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ms-access-developer.blogspot.com/2009/08/convert-numbers-into-string-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5273573338657935921/posts/default/3700511693324801958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5273573338657935921/posts/default/3700511693324801958'/><link rel='alternate' type='text/html' href='http://ms-access-developer.blogspot.com/2009/08/convert-numbers-into-string-with.html' title='Convert Numbers into String with Ordinal Suffix'/><author><name>Carlo Linga</name><uri>http://www.blogger.com/profile/02175752740466849637</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://4.bp.blogspot.com/_YH_UJoVV8GU/SXbHxDuvPwI/AAAAAAAAAB0/XOF9GDdaChc/S220/me.jpg'/></author><thr:total>0</thr:total></entry></feed>
