Link Between Navigation Button and List Box

a_20120

tan
Local time
Today, 18:25
Joined
Nov 21, 2006
Messages
175
Hi everyone,
Could u plz have a look at the attached file, and help me how to create link between List Box and Navigation Button?
 

Attachments

Hello EveryBody,
Plz anyone Help me with the above Problem
 
Hello Abdul!

Here it is!
You have to change PATH NAME in Sub SetPic().
"C:\razno\Picture\" change with your Path name.

I don't know what you mean with PROBLEM 2.
 

Attachments

THANKS Mr. MStef

This is only for four records,
1. if there are more than four records then How could we navigate through the list box?
2. if we manually select a record of the list box, then the navigation not work correctly
3. if we filter the list box, how can we select the first record of the list box?
4. at last, could u plz tell me how can i select the first and last record of the list box?
 
Hello Abdul!

Do something jourself, look at VBA and addapt for more pictures.
You must learn something.
 
Hello Mr. MStef
could u plz tell me how can i access the first and last record of the list box?
 
Look at VBA
Private Sub cmdNext_Click
If PicN = 4 then ..............it means last record, change 4 in 600.
........


Private Sub cmdPrevious_Click
If PicN = 1 Then ........it means first record.
......
 
I know that is 4, but How did u know that there might be 4 or more, bcoz records are added gradually...
 
Hello Abdul!

Remember, you have got all the pictures in "tblPicture".
Via this table you can catch how much picture you have.
Look at "PICTURE DB.mdb" a new one.
 

Attachments

Me. MStef

Could u plz have a look at the new attached file...it works well as think

But when u manually select a record of the list box, then the navigation not work correctly...what I want is that when u select manually a record of the list box, then the next record should be one after the selected record, and the previous one above it...
 

Attachments

plz select a row of the list box, then use the navigation button...see the result
 
I can see the problem but not the answer.

If you use the mouse to select a record, it does not set PicN to the record position, so PicN stays wherever it was set to bfore the manual record selection.
 
Wonder how many private messages I will get on this one while I am away over easter.

Quote (from 1 PM I got the next day) "I wait 2 hours in internet cafe and you no reply. Why not"
 
Pity this guy doesn't folow the line in his tag, rather than getting everyone else to do his research.
 
I can see the problem but not the answer.

If you use the mouse to select a record, it does not set PicN to the record position, so PicN stays wherever it was set to bfore the manual record selection.

after you use the mouse to select a record of list box, then if u use the navigation button u see the problem
 
PROBLEM when Select List Box Records By Mouse

I think the Problem is obvious when u use mouse to select the records, then the navigation button not work correctly
 

Attachments

Users who are viewing this thread

Back
Top Bottom