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

Dynamic Button For Each Record And Event Behind it

3
Hi Guys, First of All, Hi to Everybody. This is my first post here and hope to have long time with you guys. SO Coming to the point. I am new in Access and lots of things to cope with.

At the momment I am trying to build a sunform that is linked to the main form and what I want to do is for contenuous form is to Create a Command button for each record and pressing that button shoud update that record for some specific criteria. SO In short How can we Dynamically create a cmdButton For each Record and How to write its event that could be linked towards that specific record it is linked with(the row it is in).

Or if having a Check box is an option. Please direct because I dont know either how to do that.
Sep 17 '06 #1
3 3687
PEB
1,418 Expert 1GB
Hi,

In fact it is possible to accompish this task...

But what information would you like to have in your records that will refer to different events, functions and procedures?

Maybe you will have a hyperlink information???

Please tell us more...

:)
Sep 17 '06 #2
abidh
3
Thanks for replying. Actually I have two different things to do.

one is for every Command button pressed should the corrsponding row have some values updated. Some shown on the subform NOW and some in the back ground.

Second I am not even sure how can man have one button on the form and instead of command buttons to put check boxes in front of each record and one command button to look through all and updated only corrsponding records where check box checked or not.

I have tried to use the clink event of check box for the following code
if checkbox1 = true then
Update abc....
else
Update xyz...
end if

problem is this time I am updating the same record that is in this row and I get error that this record is already being used.

So Above mentioned are two different situations.
i am sorry for mixing two things but it is same problem that i am trying to solve in best possible way.

Waitting for your advice. Cheers.
Sep 18 '06 #3
PEB
1,418 Expert 1GB
Hi,

It's good to you use bound check box in your continious form!

In After Update Event you can Update your fields! Exemple

Expand|Select|Wrap|Line Numbers
  1. If Me![Checkbox}=True then
  2. Me![Field1]="abc"
  3. else
  4. Me![Field1]="cdef"
  5. end if
  6.  
:)
Sep 19 '06 #4

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

Similar topics

1
by: Nathan Bloomfield | last post by:
Does anyone know if there is any documentation which relates to Access2k + ? or can anyone help adjust the code? I am having trouble converting the DAO references. TITLE :INF: How to...
1
by: Boban Dragojlovic | last post by:
The Concept: I dynamically create an HTML table (with many rows) each with its own button. When the user clicks on the button, I wan't to know which row's button they clicked. The Details:...
1
by: | last post by:
Hi Guys, I am generating dynamic server controls using XML and XSLT. With this I am generating two buttons which when clicked redirect the page to a different page. Here is my "checkout"...
3
by: Leo J. Hart IV | last post by:
OK, here's another question for the experts: I am building a multi-step (3 steps actually) form using a panel for each step and hiding/displaying the appropriate panel/panels depending on which...
5
by: RA | last post by:
I have created a button dynamically; which has been added to a TableCell of a TableRow of a Table control. Is there a way to add onclick event which calls a procedure on the Server-side itself....
3
by: NateDawg | last post by:
I'm reposting this. I'm kinda in a bind untill i get this figured out, so if anyone has some input it would sure help me out. Ok, I’ve noticed a few gridview problems floating around the forum....
4
by: TS | last post by:
I am creating a User control and i create some dynamic controls in the init handler. one of the controls is a custom validator which i assign a serverValidate event handler. I usally always do my...
1
by: koren99 | last post by:
Hello, I have a gridview that is filled with a datasource & template fields dynamically. ( that has to be done because i ask the user for a datasource) anyway, i started out creating a static...
0
by: MaryamSh | last post by:
Create Dynamic Dropdownlist Controls and related event -------------------------------------------------------------------------------- Hi, I am creating a Dynamic Search in my application. I...
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
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?
0
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,...
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,...

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.