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

? Affecter une priorité à un contrôle d'access



J'ai développé une petite application Access qui permet d'inscrire des
joueurs de golf à des tournois.
L'inscription se fait au moyen d'un sous-formulaire, en mode continu, qui
permet l'affichage, l'ajout et la mise à jour des enregistrements(les
tournois auxquels le joueur est inscrit).Pour chaque tournoi, il y a le nom
du tournoi(obtenu à partir d'une liste défilante) et le partenaire, s'il y a
lieu.
Lorsque j'inscris un joueur à un tournoi avec partenaire, je veux que la
propriété BackColor du contrôle "partenaire" pour ce tournoi, et seulement
pour ce tournoi, prenne la couleur rose.
À cet effet, j'ai écrit la petite procédure Property Let suivante:
Public Property Let EnRose(Couleur)
Dim ActCtl As Control
Set ActCtl = Screen.ActiveControl
ActCtl.BackColor = Couleur
End Property
Cette procédure est appelée à partir d'une procédure événementielle
After_Update de la liste défilante permettant de choisir le tournoi auquel
s'inscrit le joueur, et cela au moyen des intructions suivantes:
DoCmd.GoToControl "Partenaire"
EnRose = "13408767"
Ça fonctionne bien, même trop bien!
En effet, non seulement le contrôle "partenaire" du tournoi en cours d'ajout
se colore en rose, mais aussi les contrôles "partenaire" des autres tournois
auquels est inscrit le joueur et qui sont affichés à ce moment là.
Ma question:
Comment faire en sorte que seul le contrôle "partenaire" de l'enregistrement
en court d'ajout soit affecté?
Toute suggestion acceptée...

Merci d'avance,

Raspoutine
Nov 13 '05 #1
2 1950
Rog
Dev Ashish has a sample here:
http://www.mvps.org/access/forms/frm0024.htm

Nov 13 '05 #2
Tank you very much (merci beaucoup) Rog.

Raspoutine,
"Rog" <de********@state.gov> a écrit dans le message de news:
11**********************@o13g2000cwo.googlegroups. com...
Dev Ashish has a sample here:
http://www.mvps.org/access/forms/frm0024.htm

Nov 13 '05 #3

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

Similar topics

3
by: Nicola | last post by:
Hi Everyone, I am new to programming and would like to know how to open an access Report from within vb 6. I am trying to write a program to organise cross stitch threads. I have found out how...
11
by: Wolfgang Kaml | last post by:
Hello All, I have been working on this for almost a week now and I haven't anything up my sleeves anymore that I could test in addition or change.... Since I am not sure, if this is a Windows...
5
by: kackson | last post by:
Hi. I would like to access my database outside of my company. I read many documents but they are all pertaining to accessing the database via ASP or some form of web application. Is there no...
17
by: chicha | last post by:
Hey people, I have to convert MS Access 2000 database into mysql database, the whole thing being part of this project I'm doing for one of my faculty classes. My professor somehow presumed I...
0
by: sedefo | last post by:
I ran into this Microsoft Patterns & Practices Enterprise Library while i was researching how i can write a database independent data access layer. In my company we already use Data Access...
63
by: Jerome | last post by:
Hi, I'm a bit confused ... when would I rather write an database application using MS Access and Visual Basic and when (and why) would I rather write it using Visual Studio .Net? Is it as easy...
38
by: Remco Groot Beumer | last post by:
Hello, I'm trying to decide if the following situation would be workable: Generate an MS Access Front End (which will run localy on client computers), which will link to a DBMS (SQL server or...
13
by: bill | last post by:
I am trying to convince a client that dotNet is preferable to an Access project (ADP/ADE). This client currently has a large, pure Access MDB solution with 30+ users, which needs to be upgraded....
1
by: Dave | last post by:
Hello NG, Regarding access-declarations and member using-declarations as used to change the access level of an inherited base member... Two things need to be considered when determining an...
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
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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
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...
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.