hi,
you may want to check the record source of your subform. this should be the query name instead of the table name of your source table.
hope this help
regards,
User Profile
Collapse
-
hi
hi,
you may want to use cascading combo to look up the data you need base on employee id or employee name... here you''ll have to use a combo box.
you can check the concept in the link below.
Cascading Combo/List Boxes - bytes
regards,
cindyLeave a comment:
-
elow
hi,
calling a function in vba is simple as the name of the function itself..
sub Proc_name()
function_name
end subLeave a comment:
-
please specify also where you will get the current user... from a field? from the workstation?Leave a comment:
-
well if you like set the record source of your form with the name of your table.. by this the form automatically change it size base on the number of row in the record.Leave a comment:
-
hi matt,
just a suggestion you could use the <combo_name>_af terupdate() event and to get the chosen value in combo box you could use this str_var = <combo_name>.va lue
where <combo_name> is the name of your combo box. Hope this helps.
one more thing... how do you populate the subform??? you said it is through query but how is it displayed in the form???Leave a comment:
-
Hi,
thanks for the reply... i already have the solutions for both questions... thanks a lot... :)Leave a comment:
-
Left Padding of "0" in String
Hi....
Please advise on how to create dynamic left padding for string... thanks to you..
Also, if anyone could add any idea of cascading combo box as it's not possible to setup rowsource in vba.
syntax for access 2003 can be ...
thanks so much -
you may want to browse the answer of one member here.... i'm also looking on ways to write data from access to excel...
http://bytes.com/forum/thread852979.html...Leave a comment:
-
-
please try the logic below:
Code:If CheckBox.Value = 0 Then str_sql = "Delete from table where field1 = " & buro & " and field2 = " & dienst Else If CheckBox = -1 Then str_sql = "Insert into table(field1, field2) values(" & buro & ", " & dienst & ")" End If End If Docmd.RunSQL str_sql
Leave a comment:
-
any idea about VBA code that open, writes data in EXCEL/WORD file???
Hi,
My problem is i dont know the syntax for opening/writing data/closing excel/word file via vba ms access.. If you know links or sites that could be helpful...
thanks so much... -
if <> does not work.. please provide the sql of the query by going to the design of the query... then Go to View > SQL View. there you could find the sql.
:)Leave a comment:
-
Hi,
please try to use <> as not equal before the 'Criteria'
sample:
<> ProductSoldLeave a comment:
-
actually i would like to mimic the autoform funtionality of ms access to make a flexible form that creates objects at run time. anyhow, i already got the idea and understand how to do it.
thanks for your reply.Leave a comment:
-
please see if you have just forgot to specify the property of the text you are trying to setup:
to change the caption textbox.caption = "new value"
to change the value textbox.value = "new value"Leave a comment:
-
Hi,
Can you give us the exact SQL of your query so that we could check if you miss a condition.
Regards,
CindyLeave a comment:
-
-
How can we create an object (edit box, checkbox) at run time ??
Hi,
This is related to Code Behind AutoForm question that I've posted yesterdat but no one replies to that.
What i want a solution for is I need to have a flexible page1 whereas the field/objects (fields from a certain table that were added/created dynamically in a separate page2) could be created in the page1 at run time (using VB code). I'm using MS Access 2003 in Windows XP environment.
I've tried... -
Code behind AutoForm
Hello Friends,
Anyone who could advise me the code behind AutoForm. I would like to get how that AutoForm populate the page. I'll be using the code to populate a page with fields at run time.
Thank you so much in advance for your answers.
--- Cindy
No activity results to display
Show More
Leave a comment: