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

After update

Hi

Can sum1 plz help i want to display student results on the studentSubform based on the selection i make in the combobox so far this is what ive got.
Query called students whereby the names of all the students are retrieved from the query into the combobox, the link master fields and child fields are linked with the student name abd behind the after update action i have got the following code:
Private Sub Combo6_AfterUpdate()


DoCmd.ShowAllRecords
Me!Studentsubform1.SetFocus

DoCmd.FindRecord Me!Combo6

Me.Combo6.Value = ""

End Sub

but everytime i click in the combobox to select the name of the student nothing happens but when i click enter the subform changes the results it displays but it doesnt go back to the previously selected students details i hope im making sense. Can sum1 help if they can and please tell me what im currently doing wrong.

Thanks
Apr 4 '10 #1
5 1972
Delerna
1,134 Expert 1GB
have you put breakpoints on the code in the Afterupdate event and then tried running the form to see if the code is actually being run?
Apr 6 '10 #2
Howzit Delerna im actually just starting to use access and im not that really familar with it. So i dont really understand what are breakpoints. So how do i put in the breakpoints?
Apr 6 '10 #3
Delerna
1,134 Expert 1GB
On the code page (where you have your after update function)
Down the left side of that window you will see a border (probably grey)
If you click on that margin and next to a line of code, a red circle will appear.

That is a breakpoint.
When you run your form and cause that code to be executed then the program will stop at any line that has a breakpoint and display the code window with the current line of code that is being executed highlighted yellow.

You can hover your mouse over variables to see their contents and many other debugging tasks, including single stepping through you code so you can see how it is being executed.

I suggest you use access help document and search for "debugging" or "breakpoints"
Apr 6 '10 #4
Delerna
1,134 Expert 1GB
A picture is worth 1000 words

so here is one of a breakpoint

Where the red circle is, is where you need to click to set/unset the breakpoint

And the debug menu has options that relate to breakpoints and debugging code


Experiment.....it will be time well spent
Attached Images
File Type: jpg New Bitmap Image.jpg (21.7 KB, 138 views)
Apr 6 '10 #5
Delerna
1,134 Expert 1GB
If you set a breakpoint and run the form and then do something that you believe should cause the code to execute.

If you do that and the code window doesn't pop up with the breakpoint line highlighted yellow.
That means the line of code with the breakpoint is not getting executed at all ...... ever
Apr 6 '10 #6

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

Similar topics

3
by: Kulnor | last post by:
My hosting company upgraded yesterday to pHp 4.3.10. Since then, all my INSERT/UPDATE/DELET query on our MS-SQL database seem to fail. No specific error message is returned by...
9
by: bissatch | last post by:
Hi, How would I go about destroying POST vars after their use in a script? Is this possible? The reason is that when I use a script that, for example, add a row to a database. If for some...
3
by: David | last post by:
Hi I use a calendar to update a field and the after update event no longer works, if i manually update it there is not a problem. How can I get this event to trigger Thanks in advance Dave
5
by: Ken Cox [Microsoft MVP] | last post by:
MS has posted this here: http://www.asp.net/faq/ms03-32-issue.aspx Fix for: 'Server Application Unavailable' Error after Applying Security Update for IE...
3
by: Kevin Pedersen | last post by:
Hello, I am using an editable datagrid. After I save the changes the datagrid shows the old values. I've read the posts about the Page_Load and not binding the datagrid each time. The SQL that...
3
by: jaYPee | last post by:
is there a way to know if the form is edited or not after calling addnew? Me.BindingContext(DsStudentCourse1, "Students").AddNew() because i got an error after closing the form. because in my...
15
by: graham | last post by:
Hi all, <bitching and moaning section> I am asking for any help I can get here... I am at the end of my tether... I don;t consider myself a genius in any way whatsoever, but I do believe I have...
6
by: Dugo | last post by:
I'm trying to use a "keypad" form (with command buttons for numbers 0 thru 9) I developed to allow users to first click a textbox on one form, then click a number on the keypad and have the value...
1
by: db2admin | last post by:
Hello, I lack knowledge about triggers. I have created trigger on table A Table A ------------------------------------------------- ID INTEGER CASEID ...
4
by: phill86 | last post by:
Hi, i have a form that runs a query in a recordset on the after update method if i copy and paste one record at a time the query picks up the records in the underlying table but if i paste...
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: 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...
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,...
0
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...

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.