Having trouble in Access XP. I want to display the customers name,
city and phone number in a Combo Box but the but the formatting is
lost – eg (123) 456-7890 is displayed as 1234567890.
Any idea how to format the control. From what I can see, the combo
box has a format option but I am referring to the 3rd column. The
results display properly within the underlying query… it’s
the Combo Box that loses the formatting.
Thoughts? Thank you 2 6777
Try using something like this in the RowSource of your Combo Box
SELECT CusName, CusCity, Format([CusPhoneNumber],"(@@@) @@@-@") AS PhoneNo,
CustomerID FROM Customers;
Note that the bound column will be column 4
HTH
Phil
"Dman" <De*****@hotmai l.com> wrote in message
news:b5******** *************** ***@posting.goo gle.com... Having trouble in Access XP. I want to display the customers name, city and phone number in a Combo Box but the but the formatting is lost – eg (123) 456-7890 is displayed as 1234567890.
Any idea how to format the control. From what I can see, the combo box has a format option but I am referring to the 3rd column. The results display properly within the underlying query… it’s the Combo Box that loses the formatting.
Thoughts? Thank you
Thank you. That worked perfectly. Thanks again.
"Phil Stanton" <di********@sta ntonfamily.co.u k> wrote in message news:<41******* **************@ mercury.nildram .net>... Try using something like this in the RowSource of your Combo Box
SELECT CusName, CusCity, Format([CusPhoneNumber],"(@@@) @@@-@") AS PhoneNo, CustomerID FROM Customers;
Note that the bound column will be column 4
HTH
Phil
"Dman" <De*****@hotmai l.com> wrote in message news:b5******** *************** ***@posting.goo gle.com... Having trouble in Access XP. I want to display the customers name, city and phone number in a Combo Box but the but the formatting is lost – eg (123) 456-7890 is displayed as 1234567890.
Any idea how to format the control. From what I can see, the combo box has a format option but I am referring to the 3rd column. The results display properly within the underlying query… it’s the Combo Box that loses the formatting.
Thoughts? Thank you This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Ixnay |
last post by:
Hello All,
I know this issue has be addressed a gazillion times in the past, but
none of the offered solutions seem to work for me.
I get this error when I attempt to pull down the RecordSource option
in my GUI. Does anyone have any ideas on how I can solve this?
I am running VB 6 with Service Pack 5 and Access 2000 (9.0.2720)
|
by: Philipp Lenssen |
last post by:
I don't know the English word, but I'm referring to the double-dash
which is used to separate parts of a sentence. I'm using so far.
Now I saw – which is slightly shorter. Some sites use --.
Is there anything I should know to make a good decision on which to use,
other than what looks best? I think the W3C validator is always handing
out errors, even when I go through the different charsets.
I remember a time when the W3C validator...
|
by: qbsu21th |
last post by:
Dear Sir/Madam,
I'm writing a small VB6.0 and Access 2002 application in XP OS. I selected the data control property RecordSource, I got the "Unrecognized database format 'xxx/xx/*.mdb' " error. when run the application and double selected the *.mdb database, I got the same error. Why?
I did converted the database file to access 2002. did i make any mistake when setup the reference or component?
can anyone give a help as soon as...
|
by: dam_fool_2003 |
last post by:
Hai,
I thank those who helped me to create a single linked list with int
type. Now I wanted to try out for a void* type. Below is the code:
#include<stdlib.h>
#include<stdio.h>
#include<string.h>
#include<stddef.h>
struct node
|
by: Mike |
last post by:
I allow the use select a date from a calender control and I want to format
the date.
I have this:
Session = Format("calender.selectedDate, "dd/yyyy");
and i'm getting an error on Format when i compile:
the error is:
The Name Format does not exist in class or namespace.
| |
by: Iker Arizmendi |
last post by:
Using psql and running as the owner of the table "app" I
try to access the columns of the table like so:
SELECT * FROM app;
which returns all the columns in the table including
the one I'm interested in, which is "companyID".
If instead I use something like:
SELECT companyID FROM app;
|
by: Frank Millman |
last post by:
Hi all
Assume a 2-dimensional list called 'table' - conceptually think of it
as rows and columns.
Assume I want to create a temporary copy of a row called 'row',
allowing me to modify the contents of 'row' without modifying the
contents of 'table'.
I used to fall into the newbie trap of 'row = table', but I have
|
by: Markus |
last post by:
Hi
In cases where I need to store the session id and/or the remote host in
a database I used to choose tinytext fields so far. Anyway the usual
values for session ids are of 32 characters length, and IP addresses not
longer than 15 characters - so using char(32) resp. char(15) would
actually improve the database performance. But I did not find
informations whether this is safe or not.
So my questions are:
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |