Forum: Visual Basic 4 / 5 / 6 Oct 30th, 2007 |
| Replies: 5 Views: 2,681 when you call the form add vbmodal
frmmsg.show vbmodal |
Forum: Visual Basic 4 / 5 / 6 Oct 9th, 2007 |
| Replies: 6 Views: 8,123 Do you let them try a second time with the original number and when they get it right the second time you still take off for that? Before you have a formula you have to have the exact rules.... |
Forum: Visual Basic 4 / 5 / 6 Oct 8th, 2007 |
| Replies: 19 Views: 3,835 I'm happy I was able to help. You see, I just started working in vb(and programming in general) about half a year ago and my first project was a calender, all your questions sound familiar, I also... |
Forum: Visual Basic 4 / 5 / 6 Oct 8th, 2007 |
| Replies: 19 Views: 3,835 why don't you try the select statement I wrote before, you have to use format$ in your select statement to compare dates
I tried it in your program you sent and it works, here it is again
"SELECT... |
Forum: Visual Basic 4 / 5 / 6 Oct 8th, 2007 |
| Replies: 19 Views: 3,835 maybe you don't have to change
.recordset.field
to just
.recordset
I just do it that way
Anyway, where in your code do you fill your datagrid? |
Forum: Visual Basic 4 / 5 / 6 Oct 8th, 2007 |
| Replies: 19 Views: 3,835 I think there are a few problems with your code. Start with this, to compare dates you should use format$
"SELECT time_id FROM TF WHERE fac_id = " & fac_type & " AND reserv_date = " &... |
Forum: Visual Basic 4 / 5 / 6 Oct 7th, 2007 |
| Replies: 19 Views: 3,835 what's
.recordset.requery*
for?
maybe what you need is the following
with adodc2
.recordsource =(your select statement)
.refresh
end with |
Forum: Visual Basic 4 / 5 / 6 Oct 7th, 2007 |
| Replies: 19 Views: 3,835 of course adodc can hold more than one row of criteria
do you have
adodc1.refresh
after
adodc1.recordsource
???? |
Forum: Visual Basic 4 / 5 / 6 Sep 25th, 2007 |
| Replies: 8 Views: 5,418 Select Case weekday(booking_date)'the function weekday gives you a number 1 sunday, 2 monday etc
Case 1,7
'if it's sunday or saturday
Case else
'if it's any other day
End Select |
Forum: Visual Basic 4 / 5 / 6 Sep 24th, 2007 |
| Replies: 8 Views: 5,418 calendar.value
gives you the value of the date clicked
so in the click event of calendar do
adodc1.recordset("datepicked") = calendar.value
That's all
Like I mentioned before, there is also... |
Forum: Visual Basic 4 / 5 / 6 Sep 24th, 2007 |
| Replies: 8 Views: 5,418 There is also something called monthview, maybe that's what you need? |
Forum: Visual Basic 4 / 5 / 6 Sep 24th, 2007 |
| Replies: 8 Views: 5,418 what exactly are you trying to do? Do you mean that the following doesn't work?
adodc1.recordset("datepicked") = calendar1.value |
Forum: Visual Basic 4 / 5 / 6 Sep 24th, 2007 |
| Replies: 9 Views: 3,098 If you got your answer then mark the thread solved |
Forum: Visual Basic 4 / 5 / 6 Sep 21st, 2007 |
| Replies: 9 Views: 3,098 Did you get your answer or do you still need help |
Forum: Visual Basic 4 / 5 / 6 Sep 21st, 2007 |
| Replies: 9 Views: 3,098 First of all, why do you have
unload me
in the middle of your sub? The program won't do the lines after that.
And now to your question, when you just added a record, then your recordset is... |
Forum: Visual Basic 4 / 5 / 6 Sep 16th, 2007 |
| Replies: 17 Views: 1,628 create two tables in access
1 tblbrand
2 tblmodel
tblbrand has one column called brandname with all the brandnames
tblmodel has two columns called brandname and model
enter all the models in... |
Forum: Visual Basic 4 / 5 / 6 Aug 30th, 2007 |
| Replies: 4 Views: 822 Sorry, I didn't look at your whole code before. There are some other problems
When you put a time into a label or text don't use format.
When you want to convert a string(label or text) into... |
Forum: Visual Basic 4 / 5 / 6 Aug 30th, 2007 |
| Replies: 4 Views: 822 startime = now
starttime is a date and time
lblend.caption - starttime
you are trying to subtract a date from a time
to get the time of now use time instead of now
starttime = time
what... |
Forum: Visual Basic 4 / 5 / 6 Aug 22nd, 2007 |
| Replies: 15 Views: 5,448 After
.delete
try to put
.update |
Forum: Visual Basic 4 / 5 / 6 Aug 22nd, 2007 |
| Replies: 15 Views: 5,448 Maybe somehow when you show the report, it's not updated yet, maybe it gets only updated after you click the ok(or whatever). If you send your code, someone might be able to catch your problem. |
Forum: Visual Basic 4 / 5 / 6 Aug 21st, 2007 |
| Replies: 18 Views: 2,462 I'll try to help you, if you elaborate more. I'm not clear about what you're asking |
Forum: Visual Basic 4 / 5 / 6 Aug 20th, 2007 |
| Replies: 2 Views: 3,668 Where is your M.qBW.movenext? It seems you have forgotten to move on and it's always processing the first record again. |
Forum: Visual Basic 4 / 5 / 6 Aug 20th, 2007 |
| Replies: 7 Views: 1,066 I started a similar thread 17 days ago it's called
minimize form
maybe the answers I got will help you |
Forum: Visual Basic 4 / 5 / 6 Aug 20th, 2007 |
| Replies: 2 Views: 939 in load event of frmoptions have
commandbuttonname.caption = Form1.multip |
Forum: Visual Basic 4 / 5 / 6 Aug 19th, 2007 |
| Replies: 2 Views: 934 Not sure understood your question, do you want to for ex subtract the number entered in label2 from label1 ? If so do the following
If IsNumeric(Me.Label1.Caption) Then
if... |
Forum: Visual Basic 4 / 5 / 6 Aug 17th, 2007 |
| Replies: 5 Views: 2,170 |
Forum: Visual Basic 4 / 5 / 6 Aug 14th, 2007 |
| Replies: 3 Views: 3,352 form2.creditbox = form1.creditbox |
Forum: Visual Basic 4 / 5 / 6 Aug 14th, 2007 |
| Replies: 3 Views: 1,007 After it's changed to 1, it goes on to the next if statement(if = 1), Since now it is =1 it does that if statement and continues to the next etc.
Try
Select Case Me.Tl.Caption
Case ""... |