473,626 Members | 3,340 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

OpenArgs from a combo box?

Ron
Hi.

Okay, I've got a combo box , zip, of zipcode, city, state,zipcodeID on form
Clients. It shows the zipcode, but the bound column is 4, the zipcodeID.

I've got input limited to the list and if an input isn't in the list, it
runs the On not in list sub that opens a screen for adding a new zipcode
plus city and state to the zipcode file, via form ZipCityState. When that
window pops up, all the controls are blank. I want the zip code control to
default to what I put in on the first window, the clients window. No way,
no how can I get that to happen. I know it has to do with OpenArgs, but when
I put the me.zipcode variable in the openargs position, it puts a 1 into the
zipcode field on my zipcode window. Not what I'm after.

And, since I'm never satisfied, I also would like the zipcode, once newly
stored into the zipcode file to be the default on the Clients screen's zip
control once it's returned to.

I've tried this same stuff on a control that's just text and it works like a
charm. But I can't get it to work with a combo box.

Suggestions?

TIA
ron
Nov 13 '05 #1
2 1393
jv
I think you need to pass in the NewData parameter of the combo box's
NotInList procedure.

Nov 13 '05 #2
Ron
Just didn't even see NewData!

Thanks...that did the trick.

"jv" <ju***********@ hotmail.com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. .
I think you need to pass in the NewData parameter of the combo box's
NotInList procedure.

Nov 13 '05 #3

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

Similar topics

5
2599
by: nic | last post by:
Hi am having difficulty understanding why the following is not working. Dim TempID As Integer Set TempID = Me.OpenArgs Knowing that OpenArgs is a string I then changed the declaration of TempID to be String, but this does not work either. I have also tried
11
6026
by: Susan Bricker | last post by:
Hi. I am trying to open a form using 'openargs' parameter of the docmd.openform action. The problem is that I would like to pass the form some character (string) and integer data. My plan was to concatenate the data with delimeters (",") between the fields. Then in the Form_Open( ) procedure I would parse the data and fill some "global" variables that could be used to populate some data in the form when there are no records (and I come...
3
2381
by: Tim Marshall | last post by:
I am almost certain that when I opened a form in A97 that openargs was available in that form's class module for the whole time the form was open. Apparantly this is not the case in A2003. From some development I've been doing, it seems that it is only available during the on open event (and possibly other events such as on load, but I'm not sure). Once the form is loaded (in this cae a popup property = true), openargs goes back to...
3
2017
by: Jim Evans | last post by:
Using code and suggestions from an earkier thread in this group, I have created the following cond for the open event of a form I am opening from the button click event of another form. Private Sub Form_Open(Cancel As Integer) If Len(Me.OpenArgs & "") > 0 Then Dim i As Integer Dim s As String
4
7099
by: Barry Edmund Wright | last post by:
Hi All, I am using the code below to assign a form name to a form variable (vFrm). Is there a way to assign the Openargs string directly to vFrm, i.e. vFrm = Openargs ? Private Sub Form_Load() Public vFrm As Form If Openargs = "subfrmProjects" then
2
3569
by: Robert | last post by:
I have a form (frmWorksheet) that contains project information from a Projects table. The form contains a number of fields including ClientID and Project. On the form header is two combo boxes, SelectClient and SelectProject. When a user selects a client from the SelectClient combo, only the projects associated with that client will appear in the SelectProjects combo. If the user wants to add a new project to that list, they can dblclick...
3
12025
by: Tanis | last post by:
How do you pass more than one argument using OpenArgs?
3
7188
by: dou | last post by:
In searching for a solution to a current problem I ran across a thread from 2005 on the same issue, ( http://www.thescripts.com/forum/thread202473.html ). In that case it appeared that the problem had just resolved itself. I can believe that. I have a similar problem in a VBA program, using Access in Office XP. The problem seems to have a mind of it's own. Yesterday I went home and the code worked... today it doesn't. The problem is with...
3
2177
by: angi35 | last post by:
I'm having a zero-length string problem... Hoping someone can help. (This is in Access 2000.) In FormA, I have a button that opens FormB with OpenArgs. In FormB, the OpenArgs are translated into default values for certain controls. FormB is a continuous form. For this reason, I can't assign .Value -- it has to be .DefaultValue. Otherwise it changes the values in the first record in the form. If any of the transferred controls in...
0
8266
marktang
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...
0
8638
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 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...
1
8365
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6125
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5574
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();...
0
4092
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2626
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
1
1811
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1511
bsmnconsultancy
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...

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.