Advertisement

02.20.2008 at 09:06AM PST, ID: 23178297
[x]
Attachment Details

Format a Column in ListBox as Currency

Asked by InterCrownTech in VB Database Programming

Tags: Microsoft, Access, 2003, VB

I have the following RowSource set to a listbox:

Me.List248.RowSource = "SELECT Products_PackageDetail.ProductID as [ID], Products_Main.Name, Products_Main.Price FROM Products_PackageDetail INNER JOIN Products_Main ON Products_PackageDetail.ProductID = Products_Main.Product_ID"

I want to force the Products_Main.Price to appear as a currency, with the $ sign in front and everything.
I also have a textbox that retrieves a numerical value

Me.text1.value = "$" & Dlookup("[Price]", "Products_Main", "[Product_ID] = """ & Product_ID & """")
the price does not show up as currency - just as a number, so that is why I put the $ in front. How do I force the Dlookup result to show as currecy. Start Free Trial
[+][-]02.20.2008 at 02:39PM PST, ID: 20942814

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: VB Database Programming
Tags: Microsoft, Access, 2003, VB
Sign Up Now!
Solution Provided By: jkaios
Participating Experts: 1
Solution Grade: A
 
 
[+][-]02.20.2008 at 02:43PM PST, ID: 20942840

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628