473,385 Members | 1,553 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.

Paste Into A Combo Box

When selecting records from a combo box, everything works fine if the
Item Number is typed in. For example, if I type in FC9612 it executes
properly. However, in most instances, the item number will be
selected from another program. I would like to copy it from the other
program and paste it into the Access form to speed up the process,
however, when I do so I recieve "The item number you entered is not
in the list."

This only happens if the Row Source property contains a sort
statement. If the sort clause is removed, the paste properly
executes.

Any ideas how to use the paste option with the sort clause?
Nov 12 '05 #1
1 2840
Herb E wrote:
When selecting records from a combo box, everything works fine if the
Item Number is typed in.
What does "everything works fine" mean. That you can enter an Item
Number?a
For example, if I type in FC9612 it executes
properly. However, in most instances, the item number will be
selected from another program.
After you get the item number from the program do a
msgbox "Number is " & WhateverTHeVariableNameIs...just so you know it
is a valid item
I would like to copy it from the other
program and paste it into the Access form to speed up the process,
however, when I do so I recieve "The item number you entered is not
in the list."
What do you mean "Paste"? Most often I'll enter Me.ComboBox = Variable.
Is that you mean. Or do you put the variable in the clipboard and then
paste it?
This only happens if the Row Source property contains a sort
statement. If the sort clause is removed, the paste properly
executes.
The item number you enter and the item number you "paste" must be
different. Have you verified the item to "paste" really does exist in the
combo?
Any ideas how to use the paste option with the sort clause?


What is it with "paste"? Please detail further.

I'd probably do something like this. I'd create a new form. I'd create a
text box. I'd then "paste" this value into the text box and in the
AfterUpdate event of the box I'd enter
If Me.Text0 <> "FC9612" Then
msgbox "Not the same"
Else
msgbox "The same"
endif

and if not the same, I might go into the Debug/Immediate window by putting
a step flag in the code and find out why the two don't match

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: vgrssrtrs | last post by:
<html> <head> <script language="JavaScript"> <!-- /* *** Multiple dynamic combo boxes *** by Mirko Elviro, 9 Mar 2005 *** ***Please do not remove this comment
4
by: Heather | last post by:
Hi I am desparately looking for advice in relation to storing the results after selecting items from two combo boxes on a Referral form. The first combo box 'ctl Type' displays a full list of...
2
by: Jeff Mason | last post by:
I'm observing some strange behavior when I use a bound combo box in conjunction with the combo's anchor property. I define a form which contains just a textbox and a combo box. The text box is...
3
by: hmiller | last post by:
Hey everyone, I am having a hell of a time trying to set this menu system up. Here's what I'm trying to do. Combo Box One; is populated by names under properties "row source" "Phase 1"...
2
by: kiranmn75 | last post by:
I want to dynamically populate a combo box through javascript. Data is coming from a array. Sometimes data list may contain items in excess of 2000. Explorer takes more than 5 seconds to...
0
by: gahagan | last post by:
If you encounter this error, most likely one of the controls you're trying to cut/paste is a combo box with a longer-than-average 'Row Source' value. That, apparently, is the problem. Shorter Row...
2
by: steph | last post by:
Hi, Access 2002: We've got a DataSheet-Form with a Combobox-field that shows strange behaviour. The ComboBox is constrained to the list so if we paste a value not existing in the list we get...
6
by: Dave | last post by:
I want to put the information that the user selects in my combo boxes into a subform that lies on the same form as the combo boxes. Thanks for your help already, Dave
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
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.