473,410 Members | 1,873 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,410 software developers and data experts.

vbYesNo

29
Hi -

How can you have vbYes say something else like "update field" and vb no say "don't update field", instead of yes no buttons?

Thanks.
Sep 28 '06 #1
2 6054
Tanis
143 100+
I don't think you can change the text of Yes No. You can however, add your own message.

Expand|Select|Wrap|Line Numbers
  1.       Dim strMsg As String
  2.         strMsg = strMsg & "Would you like to update it?"
  3.  
  4.             If MsgBox(strMsg, vbYesNo, "Updated") = vbYes Then
  5.  
  6.             MsgBox ("Updated")
  7.             Else
  8.             MsgBox ("Not updated") 
Sep 29 '06 #2
rgsw
29
I don't think you can change the text of Yes No. You can however, add your own message.

Expand|Select|Wrap|Line Numbers
  1.       Dim strMsg As String
  2.         strMsg = strMsg & "Would you like to update it?"
  3.  
  4.             If MsgBox(strMsg, vbYesNo, "Updated") = vbYes Then
  5.  
  6.             MsgBox ("Updated")
  7.             Else
  8.             MsgBox ("Not updated") 
Thanks, I'll give that a try.
Sep 30 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Eric | last post by:
What does "6" do... please explaine and why cantI use "5". Private Sub CmdVBOk_Click() intpress = MsgBox("Are you there", vbYesNo) If intpress = 6 Then MsgBox "Then pick up the darn phone"...
7
by: Steve | last post by:
Hi Huys, When the "X" is pressed, I know that QueryUnload is called. I want to be able to put up a box, asking the user if they are sure.. If yes then the programme will end. If the answer...
2
by: Peter yeshew | last post by:
How can i make my Else..If statement make look no so cumbersome? Besides the condition for previewing the report doesnt work,may be my If condition does no apply properly. Perhaps this is due to...
8
by: Zellan | last post by:
Hi All, Have added a Strconv function to the AfterUpdate event of a field to give me first letter capitalization (vbProperCase). I have added a msgbox that will allow me to over-ride where...
8
by: DP | last post by:
hi, i've got a price of code, which checks to see if a film is on rent, or available. but how can i actualyl make the cancel button do somthing? because, the cursor gets stuck on the filmID...
10
DUNXALEARE
by: DUNXALEARE | last post by:
please help me. im wrting a program using visual basic 6.0 and using ms access as data base. when it ry to execute the program. and try to save record in database using adodc the system prompt me...
6
by: brosner | last post by:
Hi, I am currently developing an application using Visual Studio Express and SQL Express. I connected an SQL Express database to Visual Studio Express via the new connection wizard. No problem....
10
Dököll
by: Dököll | last post by:
Me again! I have been battling this one for months. Wrote below to aid in getting certain subforms to hide once checkbox named Active is clicked. I am hoping to make the code work for Date...
0
by: helraizer1 | last post by:
Hi folks, I have made a ledger sub in Excel. The task is to create a spreadsheet solution for a foreign exchange bureau so each transaction that happens it adds the details to a ledger sheet. ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
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...
0
tracyyun
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...
0
agi2029
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.