Peter Lucas
|
| Posted: 10/28/2002, 2:34 AM |
|
Hi All,
I'm an absolute newbie at CodeCharge, or ASP/VB for that matter. After
stumbling on CodeCharge I've actualy managed to produce some working code.
Now I'm stuck at the following problem. Here's what I'm trying to to :
1) A user has a search record & grid
2) After a search, the grid get's updated
3) Now the user selects 'new record'
4) A new record form opens with the values of the search already filled in.
5) If no search is perfomed, the fields should not be prefilled but a
listbox should be shown.
I've got the prefill code worked out :
Dim param_Project_Id
param_Project_Id = CCGetParam("s_project_id", Empty)
If param_Project_Id <> 0 then
Issues.Project_id.Value = CCDLookUp("Project_name", "Projects",
"Project_id=" & CCToSQL( param_Project_id, "Integer"), DBConnection1 )
Else
--> No Value passed, Build listbox here <--
End If
As you can see, I'm stuck at building a listbox. Anybody any idea's ? As I
mentioned before, I'm an absolute newbie, so any clear examples are welcome.
Regards,
Peter Lucas
|
|
|
 |
|