i made my project here so called "student profile". it runs properly and OK!
but i have a problem. i want to change picture everytime i change name...
can somebody share their code?
thanks in advance!
Try to give some more details like where you stored, when you want to change, etc.
If you are using filepath that was stored in a database, then write the code for displaying the picture from database, and call that function when you press back or next button..
Best wishes
If my post was helpful to you, then express your gratitude using Rate this Post.
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video) My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet Social Group:VBForums - Developers from India
what do you have stored in the database? the path of file?
If my post was helpful to you, then express your gratitude using Rate this Post.
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video) My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet Social Group:VBForums - Developers from India
Private Sub cmdBack_Click()
Data1.Recordset.MovePrevious
LoadingPic 'sub
End Sub
Private Sub cmdNext_Click()
Data1.Recordset.MoveNext
LoadingPic 'sub
End Sub
Private Sub Form_Load()
'connecting the database
Data1.DatabaseName = App.Path & "\database.mdb"
Data1.RecordSource = "student"
Data1.Refresh
LoadingPic 'sub
End Sub
Private Sub LoadingPic()
'sub for displaying the picture from the database
Picture1.Picture = LoadPicture(Data1.Recordset.Fields("picture"))
End Sub
I hope this will help you..
If my post was helpful to you, then express your gratitude using Rate this Post.
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video) My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet Social Group:VBForums - Developers from India
jhaps007,
Try to give as much as details that you can...
Then only we will be able to solve the problem...
If my post was helpful to you, then express your gratitude using Rate this Post.
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video) My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet Social Group:VBForums - Developers from India
In my post #8,
I had assumed that the fullpath of the picture file is stored in the database along with other fields(eg. Surname,FirstName,Course,Age,picture)
Then I wrote a function for displaying the picture.
Then called that function each time, when the record is changed.
I think, you understand my method...
If my post was helpful to you, then express your gratitude using Rate this Post.
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video) My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet Social Group:VBForums - Developers from India
If my post was helpful to you, then express your gratitude using Rate this Post.
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video) My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet Social Group:VBForums - Developers from India
Sorry, you are using ADO. I am not much familiar with ADO but only with DAO...
You can use my technique(post #8) with some changes(I used DAO, so there will be some changes in ADO), in your program....
Don't worry... there any many experts and gurus in this forum who are experts in ADO.... Just wait for what they have to say..
One thing I want to say is...
You can include another field in your table(database) for storing the path of the picture file....
If my post was helpful to you, then express your gratitude using Rate this Post.
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video) My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet Social Group:VBForums - Developers from India
Sorry, you are using ADO. I am not much familiar with ADO but only with DAO...
You can use my technique(post #8) with some changes(I used DAO, so there will be some changes in ADO), in your program....
Don't worry... there any many experts and gurus in this forum who are experts in ADO.... Just wait for what they have to say..
One thing I want to say is...
You can include another field in your table(database) for storing the path of the picture file....
thanks sir for further explanations....
guys, who can help me here!
Use this line of code when you navigate through recordest(I mean when you click on Back button or Next button)..
-Good day pal
Akhilesh
If my post was helpful to you, then express your gratitude using Rate this Post.
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video) My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet Social Group:VBForums - Developers from India