473,385 Members | 1,877 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,385 software developers and data experts.

Msgbox help

I have 2 listboxes that generate tables when a command button is clicked on. If only one option is selected or none options in the lsitboxes are selected, and the command button is clicked, i want to have a msgbox pop up indicating that they need to select info in BOTH listboxes to continue.
May 11 '07 #1
2 1144
missinglinq
3,532 Expert 2GB
Perhaps something like this:

Expand|Select|Wrap|Line Numbers
  1. Private Sub YourCommandButton_Click()
  2.  
  3. If IsNull(FirstListBox) Or IsNull(SencondListBox) Then
  4.    MsgBox ("You need to select info in BOTH listboxes to continue.")
  5. End If
  6.  
  7. End Sub
May 11 '07 #2
Perhaps something like this:

Expand|Select|Wrap|Line Numbers
  1. Private Sub YourCommandButton_Click()
  2.  
  3. If IsNull(FirstListBox) Or IsNull(SencondListBox) Then
  4.    MsgBox ("You need to select info in BOTH listboxes to continue.")
  5. End If
  6.  
  7. End Sub
If something is not Null, what is it? I have to tell it that if there ARE values, go to my query..how would i go about doing so?
May 11 '07 #3

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

Similar topics

3
by: JT | last post by:
im trying to use the MsgBox function in the following to display an ASP MsgBox containing text retrieved from the db into a recordset <% set rsMessages= myRecordset msg_text =...
2
by: js | last post by:
Hi all, I currently encounter a problem and it is urgent to me. After calling the MsgBox.Show(), the message box is shown with non-modal mode, what is the possible reason??? This only happen...
1
by: Daryl Zavier | last post by:
Hi Guys, I'm really new to .Net development and need your advise on this. Recently I've completed a web application using VB.net (Visual Studio .Net 2003). In the application whenever the user...
4
by: Lakrom | last post by:
Hi to all, how to put msgbox in this asp page, this send me a message Denied permission: 'MsgBox' <% Set Conn=server.createobject("ADODB.connection") Conn.open application("StrConRuta") set rs =...
6
by: Lapchien | last post by:
In this bit of code provided so helpfully by Nath: Private Sub Command118_Click() Dim rs As DAO.Recordset Set db = CurrentDb Set rs = db.openrecordset("IMPORT")
0
by: CFW | last post by:
I use the below code to move to the selected record in a list box to that record in another form: DoCmd.OpenForm "frmWorksheet", acNormal, , , acFormEdit, acWindowNormal rst.CursorLocation =...
16
by: jhwagner | last post by:
I need to use double data entry with an MS Access database. I have read many arguments and reasons against this on this group but I have to do this. I have seen various tips on how this can be...
1
by: Jay at SCA | last post by:
I've been having the following issue with a windows service I've created in vb.net (.net fw 1.1): Basically, my service monitors a folder for the creation of any new files of a particular type...
3
by: Phoebe. | last post by:
Hi, Good Day! I need to display a msgbox asking user whether to delete a record or not using javascript. It works fine. Later on user request to add in more info in that msgbox, displaying...
2
by: perkykoala | last post by:
I apologize in advance for being REALLY detailed/verbose. It's the result of staring/tweaking code for too long. Using VB 2005: I need to design a multiple choice test (unfortunately, I can't...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.