473,386 Members | 1,873 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.

how to save rest of my fields

140 100+
Expand|Select|Wrap|Line Numbers
  1. Private Sub cmdsave_Click()
  2.  
  3. If imagebox.Picture = LoadPicture("") Then
  4.     MsgBox "Please browse the image you want to add to your database.", vbExclamation, "Image required"
  5.     browseimage
  6.     Exit Sub
  7.  
  8. ElseIf shotcombo = vbNullString Then
  9.  
  10.     MsgBox "Please provide shot number.", vbExclamation, "shot number required"
  11.     shotcombo.SetFocus
  12.      Exit Sub
  13. End If
  14.  
  15. 'Add mode only
  16. If addmode = True Then
  17.  
  18. Set storyboard = New Recordset
  19.     storyboard.Open "SELECT * FROM shot", CON, adOpenKeyset, adLockOptimistic
  20.     storyboard.AddNew
  21.     storyboard("shot") = shotcombo
  22.     storyboard("filename") = Filename
  23.     storyboard.Update
  24.  
  25.     SavePicture imagebox.Picture, App.Path & "\" & Filename
  26.  
  27.     question = MsgBox("Image saved to database. Do you want to add another image?", vbExclamation + vbYesNo, "Image saved")
  28.  
  29.     If question = vbYes Then
  30.         resetfields
  31.     Else
  32.         Unload Me
  33.     End If
  34. End If
i can able to add only my 2 fields using this save command. i want rest of my fields get saved using this save command. how to do that.

other fields are, sequence, scene, action and dialogue. i tried using if condition but didn't work.

help me out
Jan 31 '07 #1
3 1329
willakawill
1,646 1GB
Hi. You can add the other fields in this section:
Expand|Select|Wrap|Line Numbers
  1. Set storyboard = New Recordset
  2.     storyboard.Open "SELECT * FROM shot", CON, adOpenKeyset, adLockOptimistic
  3.     storyboard.AddNew
  4.     storyboard("shot") = shotcombo
  5.     storyboard("filename") = Filename
  6.     storyboard("anotherfield") = anotherfield
  7.     storyboard.Update
Jan 31 '07 #2
indhu
140 100+
Hi. You can add the other fields in this section:
Expand|Select|Wrap|Line Numbers
  1. Set storyboard = New Recordset
  2.     storyboard.Open "SELECT * FROM shot", CON, adOpenKeyset, adLockOptimistic
  3.     storyboard.AddNew
  4.     storyboard("shot") = shotcombo
  5.     storyboard("filename") = Filename
  6.     storyboard("anotherfield") = anotherfield
  7.     storyboard.Update

thank u so much, its working.
Feb 5 '07 #3
willakawill
1,646 1GB
thank u so much, its working.
You are very welcome :)
Feb 5 '07 #4

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

Similar topics

4
by: Andras Gilicz | last post by:
Hi VB fans I'm working on a relatively large project in VB6 with about a dozen forms, including graphs, labels, text boxes, etc. The software itself is actually a flow simulator with more or...
3
by: kbarsi | last post by:
I have created a new web form .aspx in VS.net with a couple of fields. I would like to add a button that when clicked will save the information from the fields into a newly created record in my...
13
by: Mike MacSween | last post by:
Well, I suppose it was only 20 minutes work, but it would have been nice if I'd been prompted to save that new code module. After all, they ask you if you want to save new forms, reports etc.
5
by: Øyvind Isaksen | last post by:
I have a page with an optional integer-field, and one asp:calendar control. I use a stored procedure to save the data in SQL Server. When all fields contains data, the code works great! But if the...
3
by: kevin.vaughan | last post by:
Hello Everybody and Everymind, I am using Access 2003 on an XP network. The code below activates from a command button on a form. It selects data from a table and then displays it in a cell on...
4
by: georges the man | last post by:
hey guys, i ve been posting for the last week trying to understand some stuff about c and reading but unfortunaly i couldnt do this. i have to write the following code. this will be the last...
14
by: squrel | last post by:
Hello everyone, I m using some button using toolbar such as Add,Save,View,.... my save button is not working.... it doesnt give me any error but does not save to my database.... or showing in my...
5
by: terrybell105 | last post by:
I downloaded Stephan's utility from his website but can't get it to work - or maybe I'm not driving it properly! The form works OK with the existing 3 "views" - I can switch between them and they...
0
by: mokoujan | last post by:
Hello all I am currently developing a WCF REST service. One of the requirements is to allow the users to search data via the rest interface. As such key field information is passed in the URL....
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:
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?
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:
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,...
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.