473,597 Members | 2,342 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

move next commands

140 New Member
HI all

one sequence has many panels. when i select combo it displays all the fields but panel has more rows. i want to view that also. how to do that?
move next and previous commds are there but not working.

pls help me with coding


here goes my coding

Expand|Select|Wrap|Line Numbers
  1. Private Sub sequcombo_Click()
  2.  
  3.  myconnection
  4.  
  5.  myquery = sequcombo.Text
  6.  
  7.  Call rLOAD
  8.  Do While storyboard!sequence <> myquery
  9.  storyboard.MoveNext
  10.  If storyboard!sequence = myquery Then
  11.  scenecombo.Text = storyboard!scenes 'sceneid depends on the table(sequence)
  12.  
  13.  Call PanelCOUNT
  14.  panel_txt.Text = storyboard!Panel
  15.  action_txt.Text = storyboard!Action
  16.  dialogue_txt.Text = storyboard!dialogue
  17. 'Image1.Picture = LoadPicture(App.Path & "\images\" & storyboard("filename"))
  18.  Image1.Picture = LoadPicture(storyboard!Filename) 'this produce sometimes in frame else error whileloading
  19.  noofpanel.Text = storyboard.RecordCount 'panelcount not displaying exact count of particular sequence
  20.  End If
  21.  Loop
  22.  
  23.  accdb = "SELECT DISTINCT sequence FROM sequence WHERE seqid = '" & myquery & "' "
  24. 'Load SQL query into a variable
  25.  
  26. Set storyboard = CON.Execute(accdb, adOpenStatic)
  27. End Sub
thanks in advance
Feb 13 '07 #1
55 3581
willakawill
1,646 Top Contributor
How many more rows do you want to view?
Feb 15 '07 #2
indhu
140 New Member
How many more rows do you want to view?
(panel)row is going to be indefinite in number.
seq
SW001 A
B
C
D these rows i want to display.

Expand|Select|Wrap|Line Numbers
  1. Sub rLOAD()
  2. Set storyboard = New ADODB.Recordset
  3. ' Open Recordset
  4. If CON.State = 1 Then
  5.     MsgBox "Connection is opened"
  6. Else
  7.     MsgBox "Connection is not opened"
  8. End If
  9. storyboard.Open "SELECT scenes, sequence, panel, filename, action, dialogue FROM panel WHERE scenes = '" & scenecombo.Text & "'", CON, adOpenKeyset, adLockReadOnly
  10. End Sub 
when i click next button it shows 2 recordcount of that scene but not moving.
Feb 16 '07 #3
indhu
140 New Member
(panel)row is going to be indefinite in number.
seq
SW001 A
B
C
D these rows i want to display.

Expand|Select|Wrap|Line Numbers
  1. Sub rLOAD()
  2. Set storyboard = New ADODB.Recordset
  3. ' Open Recordset
  4. If CON.State = 1 Then
  5.     MsgBox "Connection is opened"
  6. Else
  7.     MsgBox "Connection is not opened"
  8. End If
  9. storyboard.Open "SELECT scenes, sequence, panel, filename, action, dialogue FROM panel WHERE scenes = '" & scenecombo.Text & "'", CON, adOpenKeyset, adLockReadOnly
  10. End Sub 
when i click next button it shows 2 recordcount of that scene but not moving.

whatz up? no one is there to help me.
Feb 19 '07 #4
Killer42
8,435 Recognized Expert Expert
whatz up? no one is there to help me.
Don't be too impatient. The experts on this site are all volunteers, who have to find the time to help out here - it's not a paid job or anything. We are a little short on VB experts right now, due to illnesses and other commitments.

I'm sure willakawill will get back to you ASAP.

(Also, keep in mind that we live in various timezones).
Feb 19 '07 #5
willakawill
1,646 Top Contributor
Don't be too impatient. The experts on this site are all volunteers, who have to find the time to help out here - it's not a paid job or anything. We are a little short on VB experts right now, due to illnesses and other commitments.

I'm sure willakawill will get back to you ASAP.

(Also, keep in mind that we live in various timezones).
Au contraire. I am not too willing to continually work out an entire app for someone who always posts work everyone else has done for him not understanding it himself. Makes for a long drawn out botomless pit of suggestions
Feb 19 '07 #6
indhu
140 New Member
Au contraire. I am not too willing to continually work out an entire app for someone who always posts work everyone else has done for him not understanding it himself. Makes for a long drawn out botomless pit of suggestions
sorry for that.

so far i ve posted only 20 post in Vb. Rest of the post to MS access. Am very new to VB. thats y am asking such a question and suggestion form u guys.

thanks for the cooperation frm u guys.

good bye.
Feb 20 '07 #7
hariharanmca
1,977 Top Contributor
HI all

one sequence has many panels. when i select combo it displays all the fields but panel has more rows. i want to view that also. how to do that?
move next and previous commds are there but not working.

pls help me with coding


here goes my coding

Expand|Select|Wrap|Line Numbers
  1. Private Sub sequcombo_Click()
  2.  
  3.  myconnection
  4.  
  5.  myquery = sequcombo.Text
  6.  
  7.  Call rLOAD
  8.  Do While storyboard!sequence <> myquery
  9.  storyboard.MoveNext
  10.  If storyboard!sequence = myquery Then
  11.  scenecombo.Text = storyboard!scenes 'sceneid depends on the table(sequence)
  12.  
  13.  Call PanelCOUNT
  14.  panel_txt.Text = storyboard!Panel
  15.  action_txt.Text = storyboard!Action
  16.  dialogue_txt.Text = storyboard!dialogue
  17. 'Image1.Picture = LoadPicture(App.Path & "\images\" & storyboard("filename"))
  18.  Image1.Picture = LoadPicture(storyboard!Filename) 'this produce sometimes in frame else error whileloading
  19.  noofpanel.Text = storyboard.RecordCount 'panelcount not displaying exact count of particular sequence
  20.  End If
  21.  Loop
  22.  
  23. accdb = "SELECT DISTINCT sequence FROM sequence WHERE seqid = '" & myquery & "' "
  24. 'Load SQL query into a variable
  25.  
  26. Set storyboard = CON.Execute(accdb, adOpenStatic)
  27. End Sub
thanks in advance


You are coded storyboard.Move Next at the begining of the while loop so it will move to the second record then it will assigen the values
Feb 20 '07 #8
hariharanmca
1,977 Top Contributor
You are coded storyboard.Move Next at the begining of the while loop so it will move to the second record then it will assigen the values
i think this qry will select two record then its showing the second record
Feb 20 '07 #9
hariharanmca
1,977 Top Contributor
whatz up? no one is there to help me.
This is not an answer bank that you can post your question and get answer, this is discussion group that will discus on the questions.

No one is expert to answer; every one is experts to discus


Be Cool Baby to post your QA's
Feb 20 '07 #10

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

Similar topics

4
2866
by: Mohammed Mazid | last post by:
Can anyone please help me on how to move to the next and previous question? Here is a snippet of my code: Private Sub cmdNext_Click() End Sub Private Sub cmdPrevious_Click() showrecord
5
4428
by: Marco Lazzeri | last post by:
Hi, I need some examples of INSERT and UPDATE of DATE columns using 'ALLBALLS' and 'INFINITY' values. I could not find examples on the net. I need, also, to move columns in tables (just like the MOVE BEFORE/MOVE AFTER MySQL commands). Can you help me? Thank you! Have a nice day, --
4
2761
by: Alienz | last post by:
I have a subform where I have a subform with 20 options to select from. When I set the multiselect property to simple and select multiple options, nothing is stored. I have another table with fieldID and fieldtype and I would like for evertime something is selected in the listbox for a new entry to be created with that fieldtype for the corresponding fieldID which is linked to the main form. Basically, how do I get info from the listbox...
1
1989
by: Phil Endecott | last post by:
Dear Postgresql experts, According to the documentation for MOVE, it returns the number of rows that it has moved over. It seems to me that this is true for MOVE FORWARD n, but not for MOVE RELATIVE n or MOVE ABSOLUTE n when it always returns 1: db=> declare c scroll cursor for select * from p; DECLARE CURSOR db=> move absolute -1 in c;
10
3075
by: Robert | last post by:
I have an app that was originally 1.1, now migrated to 2.0 and have run into some sporadic viewstate errors...usually saying the viewstate is invalid, eventvalidation failed or mac error. My web config does specify a machinekey setting: <machineKey validationKey="447C05E8B3A71401CC4CAE5513A7F1A3494A3618EE819316AAD1D58433F236A759D66FB4154500E01EB4E1BC1DE42046E2D652D391CB8367A1649438867A02EB"...
2
18264
TMS
by: TMS | last post by:
Schools over!!! Now its time to play. I would like to learn how to make objects move from one location to the next on a canvas widget. For example: from Tkinter import * class square: def __init__(self, canvas, xy, color, change): self.canvas = canvas self.id = self.canvas.create_rectangle(-10-abs(change),
0
6526
by: shrik | last post by:
I have following error : Total giant files in replay configuration file are : File name : /new_file/prob1.rec Given file /new_file/prob1.rec is successfully verified. Splitting for giant file /new_file/prob1.rec started. Please wait.... In while loop of request searching *** glibc detected *** ./a.out: free(): invalid next size (normal): 0x099da890 *** ======= Backtrace: ========= /lib/libc.so.6
10
6912
by: ewankosayo | last post by:
Hi can anyone help me how can i move to the next record? While Reader.Read For Each Row As DataRow In Table.Rows If Reader("UserID") = Row("UserID") Then ' I need to Move to the next Row here.. ' How can i Move to the Next Row? Else Dim Item As New ListViewItem Call Item.SubItems.Add(Reader("Name"))
3
5442
by: jaeden99 | last post by:
I was wandering if nyone has a script to move files older than x days old? i've seen several to delete, but I don't want to delete. I would like to create a backup of the files first verify with users if it's ok to delete. Thanks in advance. i found one that was really close but it only looks at one folder. I need it to look at files within folders and subfolders too. Dim oFSO, wshShell, FileCol, oFolder, objTextFile, shareLength,...
0
7969
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7886
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8272
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8035
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
5847
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5431
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3886
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3927
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1238
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.