OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

How to parameter a LB in a subform with data from Main form

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Base
View previous topic :: View next topic  
Author Message
vmo
Newbie
Newbie


Joined: 30 Jan 2005
Posts: 2

PostPosted: Sun Jan 30, 2005 2:58 pm    Post subject: How to parameter a LB in a subform with data from Main form Reply with quote

Hello,

I'm working on OO since fews days trying to build some nice forms to work with my DB (MySql), but there's still a problem I can't fix :

My main Form is based on a table (say 'Table1')
My SubForm is based on a query('Query1') on an other table (say 'Table2') and of course I'm using a parameter from 'Table1' to param 'Query1' (named parameter). This works fine Very Happy

Now the problem is that I have a ListBox in my SubForm and I want it to be populated using a sql query similar to :
select field1, field2 from `DB`.`table3` where field_param = :my_param
(NB : the selected value in the ListBox should be then stored in a field of the 'table2')

Of course the "where field_param = :my_param" of my query isn't working.
How can I link :my_param with a specific field of the main Form ? I've tried many tips but none is working Crying or Very sad

Thanks for help !
Vincent
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Base All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group